Update index.py

This commit is contained in:
dami 2026-07-07 02:32:34 +08:00
parent 4f4d1e7580
commit 0bbfb58e67
1 changed files with 8 additions and 0 deletions

View File

@ -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'