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 []