mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 12:51:35 +00:00
🐛 修复重签完成不更新状态
This commit is contained in:
parent
68427d6aa3
commit
83c94895b0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user