🐛 Fix SignJob Not Handling Daily Reward Again When Status is NEED_CHALLENGE

This commit is contained in:
洛水居室 2023-02-09 17:46:38 +08:00
parent 5f3da3b55c
commit 1d50f367b5
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -42,7 +42,6 @@ class SignJob(Plugin):
if sign_db.status in [ if sign_db.status in [
SignStatusEnum.INVALID_COOKIES, SignStatusEnum.INVALID_COOKIES,
SignStatusEnum.FORBIDDEN, SignStatusEnum.FORBIDDEN,
SignStatusEnum.NEED_CHALLENGE,
]: ]:
continue continue
if context.job.name == "SignJob": if context.job.name == "SignJob":
@ -77,8 +76,7 @@ class SignJob(Plugin):
sign_db.status = SignStatusEnum.TIMEOUT_ERROR sign_db.status = SignStatusEnum.TIMEOUT_ERROR
except NeedChallenge: except NeedChallenge:
text = "签到失败,触发验证码风控" text = "签到失败,触发验证码风控"
if context.job.name == "SignAgainJob": sign_db.status = SignStatusEnum.NEED_CHALLENGE
sign_db.status = SignStatusEnum.NEED_CHALLENGE
except Exception as exc: except Exception as exc:
logger.error(f"执行自动签到时发生错误 用户UID[{user_id}]") logger.error(f"执行自动签到时发生错误 用户UID[{user_id}]")
logger.exception(exc) logger.exception(exc)