From 31d71fd6a16e45afbd93d3c2cc71463440a44381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Sat, 29 Oct 2022 00:37:27 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Skip=20auto=20check-in=20when=20?= =?UTF-8?q?status=20is=20`NEED=5FCHALLENGE`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/jobs/sign.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/jobs/sign.py b/plugins/jobs/sign.py index 9fff25eb..9a96fc3d 100644 --- a/plugins/jobs/sign.py +++ b/plugins/jobs/sign.py @@ -95,7 +95,11 @@ class SignJob(Plugin): sign_list = await self.sign_service.get_all() for sign_db in sign_list: 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 if context.job.name == "SignJob": if sign_db.status not in [SignStatusEnum.STATUS_SUCCESS, SignStatusEnum.ALREADY_CLAIMED]: