提交 1433b7e1 编写于 作者: H hjdhnx

生成静态配置文件增加管理员权限验证,防止被获取了drpy主页地址的游客乱点

上级 58fd0194
......@@ -24,7 +24,7 @@ from utils.log import logger
from utils.update import getLocalVer,getHotSuggest
from js.rules import getJxs
import random
from utils.web import getParmas
from utils.web import getParmas,verfy_token
import functools
......@@ -381,6 +381,8 @@ def sort_parses_by_order(parses,host):
@home.route('/configs')
def config_gen():
if not verfy_token():
return R.failed('请登录后再试')
# 生成文件
os.makedirs('txt',exist_ok=True)
new_conf = cfg
......
3.9.34beta1
\ No newline at end of file
3.9.34beta2
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册