diff --git a/core/cless_jx3.py b/core/cless_jx3.py index 44c012c..5fb79f1 100644 --- a/core/cless_jx3.py +++ b/core/cless_jx3.py @@ -167,10 +167,10 @@ class JX3Function: if not data: return_data["msg"] = "获取接口信息失败" return return_data - data = data[:7] + #data = data[:7] # 加载模板 try: - return_data["temp"] = load_template("temp_test.html") + return_data["temp"] = load_template("jinjia.html") except FileNotFoundError as e: logger.error(f"加载模板失败: {e}") return_data["msg"] = "系统错误:模板文件不存在" diff --git a/templates/jinjia.html b/templates/jinjia.html index 4e89622..90b22c2 100644 --- a/templates/jinjia.html +++ b/templates/jinjia.html @@ -1,186 +1,30 @@ - - -
- -| 时间 | -贴吧 | -万宝楼 | -DD373 | -UU898 | -5173 | -7881 | -
|---|---|---|---|---|---|---|
| {{ item.date }} | -{{ item.priceTieba }} | -{{ item.priceWanbaolou }} | -{{ item.priceDd373 }} | -{{ item.priceUu898 }} | -{{ item.price5173 }} | -{{ item.price7881 }} | -
服务器:梦江南
+ + - - \ No newline at end of file +{{ goodsDesc }}
+发布时间: {{ publishTime.split('T')[0] if publishTime else '未知' }}
+参考价格: {{ priceNum }} 元
-| 平台 / 时间 | - {% for item in items %} -{{ item.date }} | + +
|---|
{{ goodsDesc }}
- -{{ goodsDesc }}
+发布时间: {{ publishTime.split('T')[0] if publishTime else '未知' }}
+参考价格: {{ priceNum }} 元
+ + +| 剩余时间 | -服务器 | -价格 | -折扣率 | -
|---|---|---|---|
| {{ item.replyTime }} | -{{ item.belongQf2 }} | -{{ item.priceNum }}元 | -- - {{ item.discountRate }}% - - | -
| 剩余时间 | -服务器 | -价格 | -折扣率 | -
|---|---|---|---|
| {{ item.replyTime }} | -{{ item.belongQf2 }} | -{{ item.priceNum }}元 | -- - {{ item.discountRate }}% - - | -