From 0bbfb58e67eef3b8427867affe168226af6784ff Mon Sep 17 00:00:00 2001 From: dami Date: Tue, 7 Jul 2026 02:32:34 +0800 Subject: [PATCH] Update index.py --- plugins/webstats/index.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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'