mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-22 07:07:46 +00:00
🐛 修复全部重签成功后数据库的签到状态未修改的问题
This commit is contained in:
parent
9f2fc56ea5
commit
37d453e439
@ -63,6 +63,8 @@ class SignAll(Plugin):
|
||||
logger.error(f"执行自动签到时发生错误 用户UID[{user_id}]")
|
||||
logger.exception(exc)
|
||||
text = "签到失败了呜呜呜 ~ 执行自动签到时发生错误"
|
||||
else:
|
||||
sign_db.status = SignStatusEnum.STATUS_SUCCESS
|
||||
if sign_db.chat_id < 0:
|
||||
text = f'<a href="tg://user?id={sign_db.user_id}">NOTICE {sign_db.user_id}</a>\n\n{text}'
|
||||
try:
|
||||
@ -81,6 +83,8 @@ class SignAll(Plugin):
|
||||
logger.error(f"执行自动签到时发生错误 用户UID[{user_id}]")
|
||||
logger.exception(exc)
|
||||
continue
|
||||
else:
|
||||
sign_db.status = SignStatusEnum.STATUS_SUCCESS
|
||||
sign_db.time_updated = datetime.datetime.now()
|
||||
if sign_db.status != old_status:
|
||||
await self.sign_service.update(sign_db)
|
||||
|
Loading…
Reference in New Issue
Block a user