diff --git a/core/cless_jx3.py b/core/cless_jx3.py index 5fb79f1..7b53312 100644 --- a/core/cless_jx3.py +++ b/core/cless_jx3.py @@ -13,6 +13,9 @@ class JX3Function: self.__api_config = api_config async def richang(self,server: str = "眉间雪",num: int = 0): + """ + 日常活动 + """ return_data = { "code": 0, "msg": "功能函数未执行", @@ -47,6 +50,9 @@ class JX3Function: async def shapan(self,server: str = "梦江南"): + """ + 区服沙盘 + """ return_data = { "code": 0, "msg": "功能函数未执行", @@ -102,6 +108,9 @@ class JX3Function: return return_data async def shaohua(self): + """ + 骚话 + """ return_data = { "code": 0, "msg": "功能函数未执行", @@ -125,6 +134,9 @@ class JX3Function: async def jigai(self): + """ + 技改记录 + """ return_data = { "code": 0, "msg": "功能函数未执行", @@ -153,6 +165,9 @@ class JX3Function: async def jinjia(self, server: str = "眉间雪"): + """ + 区服金价 + """ return_data = { "code": 0, "msg": "功能函数未执行", @@ -166,8 +181,9 @@ class JX3Function: data = await self.__api.post(api_config["url"],api_config["params"],"data") if not data: return_data["msg"] = "获取接口信息失败" - return return_data - #data = data[:7] + return return_data + chart_data = data + data = data[:15] # 加载模板 try: return_data["temp"] = load_template("jinjia.html") @@ -175,9 +191,9 @@ class JX3Function: logger.error(f"加载模板失败: {e}") return_data["msg"] = "系统错误:模板文件不存在" return return_data + # 生成折线图 try: - chart_base64 = plot_line_chart_base64(data, "date", "priceWanbaolou", "万宝楼金价走势",True) - logger.info(f"生成折线图成功: {chart_base64}") + chart_base64 = plot_line_chart_base64(chart_data, "date", "priceWanbaolou", "万宝楼金价走势",True) except Exception as e: logger.error(f"生成折线图失败: {e}") return_data["msg"] = "系统错误:生成折线图失败" @@ -200,6 +216,9 @@ class JX3Function: async def qiyu(self, adventureName: str = "阴阳两界", serverName: str = "眉间雪"): + """ + 区服奇遇 + """ return_data = { "code": 0, "msg": "功能函数未执行", @@ -243,6 +262,9 @@ class JX3Function: async def SearchData(self): + """ + 外观数据插入数据库 + """ return_data = { "code": 0, "msg": "功能函数未执行", @@ -293,6 +315,9 @@ class JX3Function: async def wujia(self,Name: str = "秃盒"): + """ + 物价查询 + """ return_data = { "code": 0, "msg": "功能函数未执行", @@ -435,6 +460,9 @@ class JX3Function: async def jiaoyihang(self,Name: str = "守缺式",server: str = "梦江南"): + """ + 区服交易行 + """ return_data = { "code": 0, "msg": "功能函数未执行", diff --git a/templates/jiaoyihang.html b/templates/jiaoyihang.html index a0378b0..4c4a416 100644 --- a/templates/jiaoyihang.html +++ b/templates/jiaoyihang.html @@ -1,190 +1,30 @@ - - - - - 剑网3交易行价格查询 - - - -
-
-

剑网3交易行价格查询

-
服务器: {{ server }}
-
- -
-
共找到 {{ items|length }} 件物品
-
数据查询时间: {{ update_time }}
-
- -
- - - - - - - - - - - {% for item in items %} - - - - - - - {% endfor %} - -
物品名称最低价总数量数据更新时间
- icon - {{ item.Name }} - {{ item.AvgPrice }}{{ item.SampleSize }}{{ item.Date }}
-
- - +
+

剑网3交易行价格查询

+

服务器: {{ server }}

+ +
+ + + + + + + + + + + {% for item in items %} + + + + + + + {% endfor %} + +
物品名称最低价总数量数据更新时间
+ icon + {{ item.Name }} + {{ item.AvgPrice }}{{ item.SampleSize }}{{ item.Date }}
- - \ No newline at end of file +
diff --git a/templates/jinjia.html b/templates/jinjia.html index 90b22c2..2b4c44c 100644 --- a/templates/jinjia.html +++ b/templates/jinjia.html @@ -1,30 +1,33 @@ -
+

剑网三金价

-

服务器:梦江南

- - - - - - +
- - - + + {% for item in items %} + + {% endfor %} + - {% for item in items %} - - - - + + + {% for item in items %} + + {% endfor %} + + + + + {% for item in items %} + + {% endfor %} - {% endfor %}
时间万宝楼贴吧时间{{ item.date }}
{{ item.date }}{{ item.priceWanbaolou }}{{ item.priceTieba }}
万宝楼{{ item.priceWanbaolou }}
贴吧{{ item.priceTieba }}
+
diff --git a/templates/qiyuliebiao.html b/templates/qiyuliebiao.html index 34bc156..7356f8f 100644 --- a/templates/qiyuliebiao.html +++ b/templates/qiyuliebiao.html @@ -1,180 +1,34 @@ - - - - - 剑网3奇遇查询 - - - -
-
-

剑网3奇遇查询

-
奇遇名称:{{ qiyuname }} 服务器: {{ server }}
-
- -
-
共找到 {{ items|length }} 条记录
-
数据更新时间: {{ update_time }}
-
- -
- - - - - - - - - - - {% for item in items %} - - - - - - - {% endfor %} - -
奇遇名称服务器角色名称触发时间
{{ item.adventureName }}{{ server }}{{ item.gameName }}{{ item.time }}
-
- - +
+

剑网3奇遇查询

+

奇遇名称:{{ qiyuname }} 服务器:{{ server }}

+ +
+ + + + + + + + + + + {% for item in items %} + + + + + + + {% endfor %} + +
奇遇名称服务器角色名称触发时间
{{ item.adventureName }}{{ server }}{{ item.gameName }}{{ item.time }}
- - \ No newline at end of file + + +
+ 奇遇趋势图 +
+
diff --git a/templates/temp_test.html b/templates/temp_test.html index 07f7689..4c4a416 100644 --- a/templates/temp_test.html +++ b/templates/temp_test.html @@ -1,65 +1,30 @@ -
- - -

{{ 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 wblzs %} - - - - - - {% endfor %} - -
剩余时间服务器价格
{{ item.replyTime }}{{ item.belongQf2 }}{{ item.priceNum }}元
-
-
+
+

剑网3交易行价格查询

+

服务器: {{ server }}

+
+ + + + + + + + + + + {% for item in items %} + + + + + + + {% endfor %} + +
物品名称最低价总数量数据更新时间
+ icon + {{ item.Name }} + {{ item.AvgPrice }}{{ item.SampleSize }}{{ item.Date }}
-