From 7532133a0d876800655ec77c60c241f4f858ade7 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 8 Jul 2022 09:13:36 +0800 Subject: [PATCH] Update index.py --- plugins/php-apt/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/php-apt/index.py b/plugins/php-apt/index.py index a2954693c..980763362 100755 --- a/plugins/php-apt/index.py +++ b/plugins/php-apt/index.py @@ -482,13 +482,13 @@ def getFpmStatus(version): return mw.returnJson(False, 'PHP[' + version + ']未启动!!!') try: - url = 'http://' + mw.getHostAddr() + '/phpfpm_status_yum' + version + '?json' + url = 'http://' + mw.getHostAddr() + '/phpfpm_status_apt' + version + '?json' result = mw.httpGet(url, 1) data = json.loads(result) fTime = time.localtime(int(data['start time'])) data['start time'] = time.strftime('%Y-%m-%d %H:%M:%S', fTime) except Exception as e: - url = 'http://127.0.0.1/phpfpm_status_yum' + version + '?json' + url = 'http://127.0.0.1/phpfpm_status_apt' + version + '?json' result = mw.httpGet(url, 1) data = json.loads(result) fTime = time.localtime(int(data['start time']))