Skip to content

Commit

Permalink
Merge pull request #8 from nichuanfang/dev
Browse files Browse the repository at this point in the history
fix: 修复签到失败
  • Loading branch information
nichuanfang authored May 24, 2024
2 parents e4605da + 0d4208f commit b9f6c34
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions auto_check_in.py
Original file line number Diff line number Diff line change
Expand Up @@ -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需要的配置文件
Expand Down

0 comments on commit b9f6c34

Please sign in to comment.