diff --git a/plugins/webstats/index.py b/plugins/webstats/index.py index 13eb94ea8..ddee2a7ca 100755 --- a/plugins/webstats/index.py +++ b/plugins/webstats/index.py @@ -332,6 +332,14 @@ def reload(): makeOpDstRunLua() luaRestart() + + + # 配置重写 + path = luaConf() + path_tpl = getPluginDir() + '/conf/webstats.conf' + content = mw.readFile(path_tpl) + content = contentReplace(content) + mw.writeFile(path, content) return 'ok'