From 934327052d9368c17b768ba8d9c2f9224cf246ee Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sun, 23 Feb 2025 22:33:02 +0800 Subject: [PATCH] up --- plugins/tamper_proof_py/index.py | 3 +-- plugins/tamper_proof_py/tamper_proof_service.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/tamper_proof_py/index.py b/plugins/tamper_proof_py/index.py index 4fe6746a4..901a2939a 100755 --- a/plugins/tamper_proof_py/index.py +++ b/plugins/tamper_proof_py/index.py @@ -458,8 +458,7 @@ class App: if not protectExt in siteInfo['protectExt']: continue siteInfo['protectExt'].remove(protectExt) - self.writeLog('站点[%s]从受保护列表中删除[.%s]' % - (siteInfo['siteName'], protectExt)) + self.writeLog('站点[%s]从受保护列表中删除[.%s]' % (siteInfo['siteName'], protectExt)) self.siteReload(siteInfo) self.saveSiteConfig(siteInfo) return mw.returnJson(True, '删除成功!') diff --git a/plugins/tamper_proof_py/tamper_proof_service.py b/plugins/tamper_proof_py/tamper_proof_service.py index fb0f7d1ac..7f5fa4f25 100644 --- a/plugins/tamper_proof_py/tamper_proof_service.py +++ b/plugins/tamper_proof_py/tamper_proof_service.py @@ -123,10 +123,10 @@ class MyEventHandler(pyinotify.ProcessEvent): return ret[0:20] return ret - def get_site_logs(self, Stiename): + def get_site_logs(self, site_name): try: pythonV = sys.version_info[0] - path = '/www/wwwlogs/' + Stiename + '.log' + path = '/www/wwwlogs/' + site_name + '.log' num = 500 if not os.path.exists(path): return []