From 26ef52a791a5c7433c0f095db8df424323ee0b36 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 8 Jul 2022 09:51:38 +0800 Subject: [PATCH] Update index.py --- plugins/php-apt/index.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/php-apt/index.py b/plugins/php-apt/index.py index bbbea2bba..f8a95850b 100755 --- a/plugins/php-apt/index.py +++ b/plugins/php-apt/index.py @@ -559,7 +559,10 @@ def getPhpinfo(v): def get_php_info(args): if not mw.isInstalledWeb(): return "openresty is not running!!!" - return getPhpinfo(args['version']) + + inputVer = args['version'] + version = inputVer[0] + '.' + inputVer[1] + return getPhpinfo(version) def getLibConf(version):