mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -81,14 +81,18 @@ def getHomePage():
|
|||||||
return mw.returnJson(False, '插件未启动!')
|
return mw.returnJson(False, '插件未启动!')
|
||||||
|
|
||||||
|
|
||||||
def getPhpVer(expect=00):
|
def getPhpVer(expect=55):
|
||||||
import json
|
import json
|
||||||
v = site_api.site_api().getPhpVersion()
|
v = site_api.site_api().getPhpVersion()
|
||||||
v = json.loads(v)
|
v = json.loads(v)
|
||||||
|
is_find = False
|
||||||
for i in range(len(v)):
|
for i in range(len(v)):
|
||||||
t = int(v[i]['version'])
|
t = int(v[i]['version'])
|
||||||
if (t == expect):
|
if (t == expect):
|
||||||
|
is_find = True
|
||||||
return str(t)
|
return str(t)
|
||||||
|
if not is_find:
|
||||||
|
return "00"
|
||||||
return str(expect)
|
return str(expect)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user