mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -579,6 +579,12 @@ def reload():
|
||||
mw.opWeb('start')
|
||||
return 'ok'
|
||||
|
||||
def reload_hook():
|
||||
s = status()
|
||||
if s == 'start':
|
||||
return reload()
|
||||
return 'ok'
|
||||
|
||||
|
||||
def getJsonPath(name):
|
||||
path = getServerDir() + "/waf/" + name + ".json"
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
"site_cb": {
|
||||
"title":"网站统计",
|
||||
"name":"op_waf",
|
||||
"add":{"func":"reload"},
|
||||
"update":{"func":"reload"},
|
||||
"delete":{"func":"reload"}
|
||||
"add":{"func":"reload_hook"},
|
||||
"update":{"func":"reload_hook"},
|
||||
"delete":{"func":"reload_hook"}
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user