chore(notice): 规范修复与安装演练收尾

This commit is contained in:
augushong
2026-10-12 13:40:40 +00:00
parent 3b6cb66549
commit a756b8a1cd
23 changed files with 978 additions and 981 deletions

View File

@@ -114,9 +114,9 @@ class NoticeConsumerBase extends TimerController
->where('id', 'in', $candidates)
->where('status', SystemNoticeTargetBase::STATUS_PENDING)
->update([
'status' => SystemNoticeTargetBase::STATUS_SENDING,
'status' => SystemNoticeTargetBase::STATUS_SENDING,
'claim_token' => $token,
'claim_time' => time(),
'claim_time' => time(),
'update_time' => time(),
]);
@@ -161,8 +161,8 @@ class NoticeConsumerBase extends TimerController
->where('claim_token', $token)
->where('status', SystemNoticeTargetBase::STATUS_SENDING)
->update([
'status' => SystemNoticeTargetBase::STATUS_SUCCESS,
'send_time' => time(),
'status' => SystemNoticeTargetBase::STATUS_SUCCESS,
'send_time' => time(),
'update_time' => time(),
]);
} catch (\Throwable $e) {
@@ -198,10 +198,10 @@ class NoticeConsumerBase extends TimerController
->where('claim_token', $token)
->where('status', SystemNoticeTargetBase::STATUS_SENDING)
->update([
'status' => SystemNoticeTargetBase::STATUS_FAILED,
'retry_count' => $retry_count,
'status' => SystemNoticeTargetBase::STATUS_FAILED,
'retry_count' => $retry_count,
'error_message' => $error_message,
'update_time' => time(),
'update_time' => time(),
]);
return;
@@ -212,11 +212,11 @@ class NoticeConsumerBase extends TimerController
->where('claim_token', $token)
->where('status', SystemNoticeTargetBase::STATUS_SENDING)
->update([
'status' => SystemNoticeTargetBase::STATUS_PENDING,
'retry_count' => $retry_count,
'status' => SystemNoticeTargetBase::STATUS_PENDING,
'retry_count' => $retry_count,
'next_retry_time' => time() + self::RETRY_BASE_SECONDS * (2 ** $retry_count),
'error_message' => $error_message,
'update_time' => time(),
'error_message' => $error_message,
'update_time' => time(),
]);
}
}