From 545fdc5c02645ef9921403914c7fe08dd77ac6eb Mon Sep 17 00:00:00 2001 From: qsc20001102 Date: Thu, 20 Nov 2025 18:25:04 +0800 Subject: [PATCH] 11 --- core/cless_jx3.py | 4 +- templates/jinjia.html | 214 +++++------------------------- templates/temp_test.html | 187 ++++++++------------------- templates/wujia.html | 273 +++++++++------------------------------ 4 files changed, 147 insertions(+), 531 deletions(-) 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 @@ - - - - - 剑网3各平台金价查询 - - - -
-
-

剑网3各平台金价查询

-
服务器: {{ server }}
-
- -
-
共找到 {{ items|length }} 条数据
-
数据更新时间: {{ update_time }}
-
- -
- - - - - - - - - - - - - - {% for item in items %} - - - - - - - - - - {% endfor %} - -
时间贴吧万宝楼DD373UU89851737881
{{ item.date }}{{ item.priceTieba }}{{ item.priceWanbaolou }}{{ item.priceDd373 }}{{ item.priceUu898 }}{{ item.price5173 }}{{ item.price7881 }}
-
- - +
+

剑网三金价

+

服务器:梦江南

+ +
+ + + + + + + + + + + + + + + {% for item in items %} + + + + + + {% endfor %} + +
时间万宝楼贴吧
{{ item.date }}{{ item.priceWanbaolou }}{{ item.priceTieba }}
- - \ No newline at end of file +
diff --git a/templates/temp_test.html b/templates/temp_test.html index d046b8b..07f7689 100644 --- a/templates/temp_test.html +++ b/templates/temp_test.html @@ -1,138 +1,65 @@ - - - - - 剑网3金价趋势 - - - + +

{{ showName }} ({{ goodsAlias }})

+ {{ showName }} +

{{ goodsDesc }}

+

发布时间: {{ publishTime.split('T')[0] if publishTime else '未知' }}

+

参考价格: {{ priceNum }} 元

-
-
-

剑网3金价趋势({{ server }})

-
数据更新时间: {{ update_time }}
+ +
+ + +
+
万宝楼公示
+
+ + + + + + + + + + {% for item in wblgs %} + + + + + + {% endfor %} + +
剩余时间服务器价格
{{ item.replyTime }}{{ item.belongQf2 }}{{ item.priceNum }}元
+
-
- - - - - {% for item in items %} - + +
+
万宝楼在售
+
+
平台 / 时间{{ item.date }}
+ + + + + + + + + {% for item in wblzs %} + + + + + {% endfor %} - - - - - - {% for item in items %} - - {% endfor %} - - - - {% for item in items %} - - {% endfor %} - - -
剩余时间服务器价格
{{ item.replyTime }}{{ item.belongQf2 }}{{ item.priceNum }}元
贴吧{{ item.priceTieba }}
万宝楼{{ item.priceWanbaolou }}
+ + +
-
- - - + +
diff --git a/templates/wujia.html b/templates/wujia.html index 5a4a817..07f7689 100644 --- a/templates/wujia.html +++ b/templates/wujia.html @@ -1,220 +1,65 @@ - - - - - - {{ showName }} - 剑网3万宝楼 - - - - - -
- -
-
-

商品基本信息

-
-
-
- -
- {{ showName }} -
- -
-

{{ showName }}({{goodsAlias}})

-

{{ goodsDesc }}

- -
-
- 发布时间: {{ publishTime.split('T')[0] if publishTime else '未知' }} -
-
- 参考价格: {{ priceNum }} 元 -
-
-
-
+
+ + +

{{ showName }} ({{ goodsAlias }})

+ {{ showName }} +

{{ goodsDesc }}

+

发布时间: {{ publishTime.split('T')[0] if publishTime else '未知' }}

+

参考价格: {{ priceNum }} 元

+ + +
+ + +
+
万宝楼公示
+
+ + + + + + + + + + {% for item in wblgs %} + + + + + + {% endfor %} + +
剩余时间服务器价格
{{ item.replyTime }}{{ item.belongQf2 }}{{ item.priceNum }}元
- -
- -
-
-

万宝楼公示

-
-
-
- - - - - - - - - - - {% for item in wblgs %} - - - - - - - {% endfor %} - -
剩余时间服务器价格折扣率
{{ item.replyTime }}{{ item.belongQf2 }}{{ item.priceNum }}元 - - {{ item.discountRate }}% - -
-
-
-
- - -
-
-

万宝楼在售

-
-
-
- - - - - - - - - - - {% for item in wblzs %} - - - - - - - {% endfor %} - -
剩余时间服务器价格折扣率
{{ item.replyTime }}{{ item.belongQf2 }}{{ item.priceNum }}元 - - {{ item.discountRate }}% - -
-
-
+ +
+
万宝楼在售
+
+ + + + + + + + + + {% for item in wblzs %} + + + + + + {% endfor %} + +
剩余时间服务器价格
{{ item.replyTime }}{{ item.belongQf2 }}{{ item.priceNum }}元
+
- - - - \ No newline at end of file + +