|
|
@ -104,18 +104,19 @@ def loadConfigFile(): |
|
|
|
listToLuaFile(dst_conf_lua, content) |
|
|
|
listToLuaFile(dst_conf_lua, content) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def loadConfigFileReload(): |
|
|
|
# def loadConfigFileReload(): |
|
|
|
lua_dir = getServerDir() + "/lua" |
|
|
|
# -- 配置生活或可使用 |
|
|
|
conf_tpl = getPluginDir() + "/conf/config.json" |
|
|
|
# lua_dir = getServerDir() + "/lua" |
|
|
|
|
|
|
|
# conf_tpl = getPluginDir() + "/conf/config.json" |
|
|
|
|
|
|
|
|
|
|
|
content = mw.readFile(conf_tpl) |
|
|
|
# content = mw.readFile(conf_tpl) |
|
|
|
content = json.loads(content) |
|
|
|
# content = json.loads(content) |
|
|
|
|
|
|
|
|
|
|
|
dst_conf_json = getServerDir() + "/lua/config.json" |
|
|
|
# dst_conf_json = getServerDir() + "/lua/config.json" |
|
|
|
mw.writeFile(dst_conf_json, json.dumps(content)) |
|
|
|
# mw.writeFile(dst_conf_json, json.dumps(content)) |
|
|
|
|
|
|
|
|
|
|
|
dst_conf_lua = getServerDir() + "/lua/webstats_config.lua" |
|
|
|
# dst_conf_lua = getServerDir() + "/lua/webstats_config.lua" |
|
|
|
listToLuaFile(dst_conf_lua, content) |
|
|
|
# listToLuaFile(dst_conf_lua, content) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def loadLuaSiteFile(): |
|
|
|
def loadLuaSiteFile(): |
|
|
@ -277,8 +278,6 @@ def restart(): |
|
|
|
|
|
|
|
|
|
|
|
def reload(): |
|
|
|
def reload(): |
|
|
|
initDreplace() |
|
|
|
initDreplace() |
|
|
|
|
|
|
|
|
|
|
|
loadConfigFileReload() |
|
|
|
|
|
|
|
loadDebugLogFile() |
|
|
|
loadDebugLogFile() |
|
|
|
|
|
|
|
|
|
|
|
mw.opWeb("reload") |
|
|
|
mw.opWeb("reload") |
|
|
|