From c0923f7d4fca769fd082f34213132c76a4b63d2c Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 10 Dec 2024 18:15:05 +0800 Subject: [PATCH] Update index.py --- plugins/php-apt/index.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/php-apt/index.py b/plugins/php-apt/index.py index 5a2967a91..75647b2eb 100755 --- a/plugins/php-apt/index.py +++ b/plugins/php-apt/index.py @@ -762,8 +762,7 @@ def getLibConf(version): return mw.returnJson(False, '指定PHP版本不存在!') # phpini = mw.readFile(fname) - content = mw.execShell( - 'cat /etc/php/' + version + '/fpm/conf.d/*' + " | grep -v '^;' |tr -s '\n'") + content = mw.execShell('cat /etc/php/' + version + '/fpm/conf.d/*' + " | grep -v '^;' |tr -s '\n'") content = content[0] libpath = getPluginDir() + '/versions/phplib.conf' @@ -781,7 +780,7 @@ def getLibConf(version): if tmp1[0].lower() == lib['name'].lower(): lib['task'] = task['status'] lib['phpversions'] = [] - lib['phpversions'].append(tmp1[1]) + lib['phpversions'].append(tmp1[1].replace('.','')) if content.find(lib['check']) == -1: lib['status'] = False else: