调整消息推送“

This commit is contained in:
mzl
2025-10-12 08:59:39 +00:00
parent 9dcba987ef
commit 72e2b46f60
3 changed files with 49 additions and 14 deletions
@@ -1938,15 +1938,10 @@ class ApprovalFlowService
try {
foreach ($payload as $uid => $cnt) {
\Webman\RedisQueue\Redis::send('ws-msg', [
'event' => 'approval.todo.counts',
'user_id' => $uid,
'num' => $cnt,
]);
(new \app\common\utils\WsEvents())->todoCounts($uid, $cnt);
}
} catch (\Throwable $e) {
Log::error('ws todo push error: '.$e->getMessage());
}
}
}