mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
up
This commit is contained in:
@@ -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, '删除成功!')
|
||||
|
||||
@@ -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 []
|
||||
|
||||
Reference in New Issue
Block a user