From 48d1b21b19de0ae8708655071804244e327c2ef1 Mon Sep 17 00:00:00 2001 From: echo Date: Thu, 3 Oct 2024 23:34:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B:bug:=20=E4=BF=AE=E5=A4=8D=E9=A2=86?= =?UTF-8?q?=E5=8F=96=E5=A4=B1=E8=B4=A5=E6=97=B6=E4=B8=AD=E6=96=87=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E6=98=AFUnicode=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hykb_tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hykb_tasks.py b/hykb_tasks.py index 1c83b37..ed46c27 100644 --- a/hykb_tasks.py +++ b/hykb_tasks.py @@ -189,7 +189,7 @@ class AsyncHykbTasks: return False except Exception as e: fn_print("调度任务异常:", e) - fn_print(daily_share_callback_response.text) + fn_print(daily_share_callback_response.json()) async def appointment_moreManorToDo_task(self, task_items): """ @@ -232,7 +232,7 @@ class AsyncHykbTasks: elif response_json["key"] == "2001": fn_print(f"任务:【{task_items['bmh_task_title']}】今天已经领取过了!") else: - fn_print(f"奖励领取失败!{response.text}") + fn_print(f"奖励领取失败!{response.json()}") except Exception as e: print("领取任务奖励异常: ", e) @@ -295,7 +295,7 @@ class AsyncHykbTasks: elif m_response["key"] == "2001": fn_print(f"任务: 【{task_items['bmh_task_title']}】已经领取过奖励啦") else: - fn_print(f"奖励领取失败,{response.text}") + fn_print(f"奖励领取失败,{response.json()}") except Exception as e: print("领取任务奖励异常: ", e)