diff --git a/controllers/home.py b/controllers/home.py index 19433f9..1314d20 100644 --- a/controllers/home.py +++ b/controllers/home.py @@ -242,6 +242,7 @@ def config_render(mode): tt = time() UA = request.headers['User-Agent'] ver = getParmas('ver') + m = getParmas('mode') sp = getParmas('sp') # 优选 logger.info(f'ver:{ver},UA:{UA}') if ver not in ['1','2']: @@ -267,6 +268,11 @@ def config_render(mode): js_proxy = new_conf.JS_PROXY js0_password = new_conf.JS0_PASSWORD js_mode = int(new_conf.JS_MODE or 0) + if m: + try: + js_mode = int(m) + except: + pass print(f'{type(js_mode)} jsmode:{js_mode}') # print(ali_token) customConfig = getCustonDict(host,ali_token,js0_password) diff --git a/doc/更新日志.md b/doc/更新日志.md index 7e19290..24b14f6 100644 --- a/doc/更新日志.md +++ b/doc/更新日志.md @@ -1,3 +1,11 @@ +###### 2023/10/03 +- [X] 更新版本号到 3.9.48beta1 +- [X] 调整自建解析及首页js0/js1配置快速切换 +自建解析调整如下: +- js文件中开头 var flag=['bilibili']; 必须定义flag且列表里有值,否则此自建解析不会加载进配置 +- js文件必须lazy()函数里面写逻辑并且返回一个解析后的结果。vipUrl内置变量改为input同免嗅 +- js文件中非function不允许直接写除flag外的其他变量。哔哩.js自建解析文件修复 + ###### 2023/09/11 - [X] 修复drpy2.js和drpy.js里的js本地代理部分代码的 js: 误写为 :js 的错误 diff --git a/js/version.txt b/js/version.txt index 63e7860..ba0703b 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.9.47beta42 \ No newline at end of file +3.9.48beta1 \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index a46d12e..54cdd1d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -49,7 +49,10 @@ 缓存文件列表-清除
+ {% if is_linux %}