This commit is contained in:
Mr Chen 2025-02-23 22:33:02 +08:00
parent 24a94b4965
commit 934327052d
2 changed files with 3 additions and 4 deletions

View File

@ -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, '删除成功!')

View File

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