From de13671065a386a4872fdc5541677666831f1419 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 27 Jul 2022 14:22:42 +0800 Subject: [PATCH] =?UTF-8?q?xhprof=E5=AE=89=E8=A3=85=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/xhprof/index.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/xhprof/index.py b/plugins/xhprof/index.py index 20cdc983f..cc4410a73 100755 --- a/plugins/xhprof/index.py +++ b/plugins/xhprof/index.py @@ -207,7 +207,9 @@ def getConfAppStart(): def installPreInspection(): - + path = mw.getServerDir() + '/php' + if not os.path.exists(path): + return "先安装一个可用的PHP版本!" return 'ok' if __name__ == "__main__":