From a8adaf7e5a126a6c8785fa4139783c84a46bc766 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 3 Feb 2025 03:09:21 +0800 Subject: [PATCH] Update index.py --- plugins/lam/index.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/lam/index.py b/plugins/lam/index.py index ac639d2f1..e900bfbd2 100755 --- a/plugins/lam/index.py +++ b/plugins/lam/index.py @@ -89,7 +89,7 @@ def getHomePage(): return mw.returnJson(False, '插件未启动!') -def getPhpVer(expect=74): +def getPhpVer(expect=83): php_vers = MwSites.instance().getPhpVersion() v = php_vers['data'] is_find = False @@ -225,6 +225,8 @@ def start(): rand_str = rand_str.lower() pma_dir_dst = pma_dir + "_" + rand_str mw.execShell("mv " + pma_dir + " " + pma_dir_dst) + mw.execShell("chmod -R 777 " + pma_dir_dst+'/sess') + mw.execShell("chmod -R 777 " + pma_dir_dst+'/tmp') setCfg('path', 'lam_' + rand_str) file_tpl = getPluginDir() + '/conf/lam.conf'