From 0d4208f3ae73d3d25ec879d1b7acb331fa0c3855 Mon Sep 17 00:00:00 2001 From: f18326186224 Date: Fri, 24 May 2024 20:58:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=AD=BE=E5=88=B0?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto_check_in.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/auto_check_in.py b/auto_check_in.py index 37f5c72..bb3249a 100644 --- a/auto_check_in.py +++ b/auto_check_in.py @@ -76,18 +76,20 @@ def sign_in(refresh_token: str, bot: TeleBot): if isinstance(response_data, str): tg_content += response_data - signin_count = response_data['result']['signInCount'] - tg_content += f"账号: {user_name} - 成功签到, 本月累计签到: {signin_count}天\n" + logger.info(f'签到成功结果: {response_data}') + # signin_count = response_data['result']['signInCount'] + # tg_content += f"账号: {user_name} - 成功签到, 本月累计签到: {signin_count}天\n" response_data = aliyundriveAutoCheckin.get_reward( access_token, signin_count) if isinstance(response_data, str): tg_content += response_data - tg_content += f"本次签到的奖励: {response_data['result']['name']}, {response_data['result']['description']}\n" + logger.info(f'签到奖励结果: {response_data}') + # tg_content += f"本次签到的奖励: {response_data['result']['name']}, {response_data['result']['description']}\n" # bot.send_message(chat_id=os.environ['TG_CHAT_ID'], text=tg_content) - logger.info('阿里云盘自动签到成功') + logger.info('阿里云盘自动签到成功!') # 准备aligo需要的配置文件