提交 7c9eecf5 编写于 作者: H hjdhnx

md

上级 cf0d95f1
3.7.0
\ No newline at end of file
3.7.1
\ No newline at end of file
......@@ -49,6 +49,7 @@
###### 2022/09/21
- [X] 1.未来功能增加显示和隐藏多选规则的实际逻辑,增加顺序字段等待有缘人
- [X] 2.版本升级至3.7.0
- [X] 3.版本升级至3.7.1,修复/js目录的内置源会被缓存的问题
###### 2022/09/19
- [X] 1.增加20多个缓存源,需要在custom.conf文件自定义添加
- [X] 2.修复缓存js播放免嗅问题
......
......@@ -59,8 +59,8 @@ def runJs(jsPath, before='', after='', ctx=None):
return None,''
js_name = jsPath.split('/')[-1]
cache_path = os.path.join(base_path, f'cache/{js_name}')
if not os.path.exists(cache_path) and os.path.exists(js_path):
shutil.copy(js_path,cache_path)
if not str(jsPath).startswith('js/') and not os.path.exists(cache_path) and os.path.exists(js_path):
shutil.copy(js_path,cache_path) # 本地txt目录的复制过去凑数,实际不使用
print(js_path)
with open(js_path, 'r', encoding='UTF-8') as fp:
js_code = fp.read()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册