This commit is contained in:
Mr Chen 2025-01-03 22:21:02 +08:00
parent 76cf2e8fa5
commit 31fd04456b
4 changed files with 4 additions and 3 deletions

View File

@ -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'])

View File

@ -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

View File

@ -562,7 +562,6 @@ class App:
# 判断是否安装php
php_version = MwSites.instance().getPhpVersion()
if not php_version['data']:
return mw.returnJson(False, "未安装PHP测试失败")

View File

@ -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):