Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.

Commit 285df75

Browse files
committed
增加Hipy的t4示例
1 parent dac8837 commit 285df75

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

base/custom.conf

+10
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@
1919
"quickSearch":1,
2020
"filterable":0
2121
},
22+
{
23+
"key":"hipy_cctv",
24+
"name":"hipy_cctv",
25+
"type":4,
26+
"api":"http://192.168.31.49:5707/api/v1/vod/cctv_spider?api_ext=./cctv_spider.json",
27+
"searchable":1,
28+
"quickSearch":1,
29+
"filterable":1,
30+
"ext":"api的扩展,可以是字符串",
31+
},
2232
{"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"},
2333

2434
# 缓存js

controllers/cms.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ def searchContent(self, key, fypage=1, show_name=False):
13541354
cnt_ctx = {}
13551355
# exec(f'cnt_pg={cnt_page}', cnt_ctx)
13561356
safe_eval(f'cnt_pg={cnt_page}', cnt_ctx)
1357-
cnt_pg = str(cnt_ctx['cnt_pg']) if cnt_ctx.get('cnt_pg') else 1 # 计算表达式的结果
1357+
cnt_pg = str(cnt_ctx['cnt_pg']) if cnt_ctx.get('cnt_pg') else 1 # 计算表达式的结果
13581358
url = url.replace(url_rep, str(cnt_pg)).replace('(', '').replace(')', '')
13591359
# print(url)
13601360
else:

0 commit comments

Comments
 (0)