🐛 修复触发验证码仍然提示签到成功

This commit is contained in:
xtaodada 2022-08-12 13:55:12 +08:00
parent 4d1a5b17b9
commit 6b494dc407
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -56,6 +56,9 @@ class Sign(BasePlugins):
request_daily_reward = await client.request_daily_reward("sign", method="POST", request_daily_reward = await client.request_daily_reward("sign", method="POST",
game=Game.GENSHIN, lang="zh-cn") game=Game.GENSHIN, lang="zh-cn")
Log.info(f"UID {client.uid} 签到请求 {request_daily_reward}") Log.info(f"UID {client.uid} 签到请求 {request_daily_reward}")
if request_daily_reward and request_daily_reward.get("success", 0) == 1:
Log.error(f"UID {client.uid} 签到失败,触发验证码风控")
return f"UID {client.uid} 签到失败,触发验证码风控,请尝试重新签到。"
except AlreadyClaimed: except AlreadyClaimed:
result = "今天旅行者已经签到过了~" result = "今天旅行者已经签到过了~"
except GenshinException as error: except GenshinException as error: