Update index.py

pull/632/head
Mr Chen 5 months ago
parent c66b9794ee
commit 31cafa59ab
  1. 5
      plugins/php-yum/index.py

@ -739,7 +739,7 @@ def setDisableFunc(version):
def getPhpinfo(version): def getPhpinfo(version):
stat = status(version) stat = status(version)
if stat == 'stop': if stat == 'stop':
return 'PHP[' + version + ']未启动,不可访问!!!' return 'PHP[' + version + ']未启动,不可访问!'
sock_file = getFpmAddress(version) sock_file = getFpmAddress(version)
root_dir = mw.getFatherDir() + '/phpinfo' root_dir = mw.getFatherDir() + '/phpinfo'
@ -771,8 +771,7 @@ def getLibConf(version):
phplib = json.loads(mw.readFile(libpath)) phplib = json.loads(mw.readFile(libpath))
libs = [] libs = []
tasks = mw.M('tasks').where( tasks = mw.M('tasks').where("status!=?", ('1',)).field('status,name').select()
"status!=?", ('1',)).field('status,name').select()
for lib in phplib: for lib in phplib:
lib['task'] = '1' lib['task'] = '1'
for task in tasks: for task in tasks:

Loading…
Cancel
Save