🎨 Skip auto check-in when status is NEED_CHALLENGE

This commit is contained in:
洛水居室 2022-10-29 00:37:27 +08:00
parent 884afa3087
commit 31d71fd6a1
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -95,7 +95,11 @@ class SignJob(Plugin):
sign_list = await self.sign_service.get_all() sign_list = await self.sign_service.get_all()
for sign_db in sign_list: for sign_db in sign_list:
user_id = sign_db.user_id user_id = sign_db.user_id
if sign_db.status in [SignStatusEnum.INVALID_COOKIES, SignStatusEnum.FORBIDDEN]: if sign_db.status in [
SignStatusEnum.INVALID_COOKIES,
SignStatusEnum.FORBIDDEN,
SignStatusEnum.NEED_CHALLENGE,
]:
continue continue
if context.job.name == "SignJob": if context.job.name == "SignJob":
if sign_db.status not in [SignStatusEnum.STATUS_SUCCESS, SignStatusEnum.ALREADY_CLAIMED]: if sign_db.status not in [SignStatusEnum.STATUS_SUCCESS, SignStatusEnum.ALREADY_CLAIMED]: