mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-09 22:29:25 +08:00
update
This commit is contained in:
@@ -90,7 +90,7 @@ def getHomePage():
|
||||
|
||||
def getPhpVer(expect=55):
|
||||
php_vers = MwSites.instance().getPhpVersion()
|
||||
v = php_ver['data']
|
||||
v = php_vers['data']
|
||||
is_find = False
|
||||
for i in range(len(v)):
|
||||
t = str(v[i]['version'])
|
||||
|
||||
@@ -7,6 +7,8 @@ rootPath=$(dirname "$curPath")
|
||||
rootPath=$(dirname "$rootPath")
|
||||
serverPath=$(dirname "$rootPath")
|
||||
|
||||
# cd /www/server/mdserver-web && python3 plugins/phpmyadmin/index.py start
|
||||
|
||||
if [ -f ${rootPath}/bin/activate ];then
|
||||
source ${rootPath}/bin/activate
|
||||
fi
|
||||
|
||||
@@ -562,7 +562,6 @@ class App:
|
||||
|
||||
# 判断是否安装php
|
||||
php_version = MwSites.instance().getPhpVersion()
|
||||
|
||||
if not php_version['data']:
|
||||
return mw.returnJson(False, "未安装PHP测试失败")
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ def getHomePage():
|
||||
|
||||
def getPhpVer(expect=74):
|
||||
php_vers = MwSites.instance().getPhpVersion()
|
||||
v = php_ver['data']
|
||||
v = php_vers['data']
|
||||
for i in range(len(v)):
|
||||
t = int(v[i]['version'])
|
||||
if (t >= expect):
|
||||
|
||||
Reference in New Issue
Block a user