From 3545b9ddb2c9652f33b7a537b10fe79043a5edc1 Mon Sep 17 00:00:00 2001 From: HornCopper Date: Sat, 14 Sep 2024 22:28:13 +0800 Subject: [PATCH] [feat]fix gold price --- src/plugins/jx3/gold/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/jx3/gold/api.py b/src/plugins/jx3/gold/api.py index 043bffa8e..c0236f3ae 100644 --- a/src/plugins/jx3/gold/api.py +++ b/src/plugins/jx3/gold/api.py @@ -22,7 +22,7 @@ async def demon_(server: str = "", group_id: str = ""): # 金价 <服务器> data = await post_url("https://www.jx3mm.com/api/uniqueapi/Apiinterface/gettrade", json={"v": goal_server}) data = json.loads(data) - if "error" not in data: + if "data" in data: template_jinjia = """ {{ date }}