🐛 Fix ajax failure does not reapply

This commit is contained in:
xtaodada 2023-06-04 21:49:52 +08:00
parent 78b1b1ba15
commit 6f09d52ec5
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -87,6 +87,8 @@ class ChallengeSystem(Plugin):
return client.player_id, "ajax", "ajax" return client.player_id, "ajax", "ajax"
except APIHelperException as exc: except APIHelperException as exc:
logger.warning("用户 %s ajax 验证失效 错误信息为 %s", user_id, str(exc)) logger.warning("用户 %s ajax 验证失效 错误信息为 %s", user_id, str(exc))
logger.warning("用户 %s ajax 验证失败 重新申请验证", user_id)
return await self.create_challenge(user_id, need_verify, False)
await self.set_challenge(client.player_id, gt, challenge) await self.set_challenge(client.player_id, gt, challenge)
return client.player_id, gt, challenge return client.player_id, gt, challenge