1
0
mirror of https://github.com/hjdhnx/dr_py.git synced 2025-07-26 14:01:51 -04:00

增加外挂jar的测试案例,失败品

This commit is contained in:
hjdhnx 2023-07-05 20:23:26 +08:00
parent 587de449db
commit 8c0fa498a9
5 changed files with 44 additions and 1 deletions

@ -19,6 +19,8 @@
"quickSearch":1,
"filterable":0
},
{"key":"Test_jsapi","name":"Test_jsapi(drpy)","type":3,"api":"{{host}}/libs/drpy2.min.js","searchable":2,"quickSearch":0,"filterable":0,"ext":"{{host}}/js/jsapi.js","jar":"{{host}}/libs/jar/custom_jsapi.jar"},
# 缓存js
# {"key":"js_origin","name":"JS(原始)","type":3,"api":"{{host}}/txt/js/原始JS.js","searchable":1,"quickSearch":1,"filterable":1,"ext":""},
{

40
js/jsapi.js Normal file

File diff suppressed because one or more lines are too long

@ -1 +1 @@
3.9.46beta5
3.9.46beta6

BIN
libs/jar/custom_jsapi.jar Normal file

Binary file not shown.

@ -136,6 +136,7 @@ def getCustonDict(host,ali_token='',js0_password=''):
with open(customFile,'r',encoding='utf-8') as f:
text = f.read()
customConfig = parseText(render_template_string(text,host=host,ali_token=ali_token,js0_password=js0_password))
print(customConfig)
except Exception as e:
logger.info(f'用户自定义配置加载失败:{e}')
return customConfig