From 217ba2d14e70a8121e98955d2d241e86dc059dc2 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 1 Dec 2022 17:41:34 +0800 Subject: [PATCH] Update index.py --- plugins/webstats/index.py | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/plugins/webstats/index.py b/plugins/webstats/index.py index 5583ab86d..5af40995f 100755 --- a/plugins/webstats/index.py +++ b/plugins/webstats/index.py @@ -104,18 +104,19 @@ def loadConfigFile(): listToLuaFile(dst_conf_lua, content) -def loadConfigFileReload(): - lua_dir = getServerDir() + "/lua" - conf_tpl = getPluginDir() + "/conf/config.json" +# def loadConfigFileReload(): +# -- 配置生活或可使用 +# lua_dir = getServerDir() + "/lua" +# conf_tpl = getPluginDir() + "/conf/config.json" - content = mw.readFile(conf_tpl) - content = json.loads(content) +# content = mw.readFile(conf_tpl) +# content = json.loads(content) - dst_conf_json = getServerDir() + "/lua/config.json" - mw.writeFile(dst_conf_json, json.dumps(content)) +# dst_conf_json = getServerDir() + "/lua/config.json" +# mw.writeFile(dst_conf_json, json.dumps(content)) - dst_conf_lua = getServerDir() + "/lua/webstats_config.lua" - listToLuaFile(dst_conf_lua, content) +# dst_conf_lua = getServerDir() + "/lua/webstats_config.lua" +# listToLuaFile(dst_conf_lua, content) def loadLuaSiteFile(): @@ -277,8 +278,6 @@ def restart(): def reload(): initDreplace() - - loadConfigFileReload() loadDebugLogFile() mw.opWeb("reload")