mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-23 00:01:45 +00:00
🎨 Skip auto check-in when status is NEED_CHALLENGE
This commit is contained in:
parent
884afa3087
commit
31d71fd6a1
@ -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]:
|
||||||
|
Loading…
Reference in New Issue
Block a user