增加外挂jar的测试案例,失败品
This commit is contained in:
parent
587de449db
commit
8c0fa498a9
@ -19,6 +19,8 @@
|
|||||||
"quickSearch":1,
|
"quickSearch":1,
|
||||||
"filterable":0
|
"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
|
# 缓存js
|
||||||
# {"key":"js_origin","name":"JS(原始)","type":3,"api":"{{host}}/txt/js/原始JS.js","searchable":1,"quickSearch":1,"filterable":1,"ext":""},
|
# {"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
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
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:
|
with open(customFile,'r',encoding='utf-8') as f:
|
||||||
text = f.read()
|
text = f.read()
|
||||||
customConfig = parseText(render_template_string(text,host=host,ali_token=ali_token,js0_password=js0_password))
|
customConfig = parseText(render_template_string(text,host=host,ali_token=ali_token,js0_password=js0_password))
|
||||||
|
print(customConfig)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.info(f'用户自定义配置加载失败:{e}')
|
logger.info(f'用户自定义配置加载失败:{e}')
|
||||||
return customConfig
|
return customConfig
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user