🐛 修复重签完成不更新状态

This commit is contained in:
omg-xtao 2022-10-15 00:23:10 +08:00 committed by GitHub
parent 68427d6aa3
commit 83c94895b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,10 +97,11 @@ class SignJob(Plugin):
if sign_db.status not in [SignStatusEnum.STATUS_SUCCESS, SignStatusEnum.ALREADY_CLAIMED]:
continue
elif context.job.name == "SignAgainJob":
if sign_db.status in [SignStatusEnum.STATUS_SUCCESS, SignStatusEnum.ALREADY_CLAIMED, SignStatusEnum.INVALID_COOKIES]:
if sign_db.status in [SignStatusEnum.STATUS_SUCCESS, SignStatusEnum.ALREADY_CLAIMED]:
continue
try:
text = await self.single_sign(user_id)
sign_db.status = SignStatusEnum.STATUS_SUCCESS
except InvalidCookies:
text = "自动签到执行失败Cookie无效"
sign_db.status = SignStatusEnum.INVALID_COOKIES