1.ws优化bet.win订阅,修复中大奖没有推送
This commit is contained in:
@@ -339,7 +339,15 @@ final class GameBetSettleService
|
||||
'payout_pending_review' => $payoutPendingReview,
|
||||
'server_time' => $now,
|
||||
]), $userId);
|
||||
GameWebSocketEventBus::publish(self::TOPIC_BET_WIN, $data);
|
||||
$ok = GameWebSocketEventBus::publish(self::TOPIC_BET_WIN, $data);
|
||||
if (!$ok) {
|
||||
Log::warning('bet.win publish failed (will retry next round)', [
|
||||
'period_id' => $periodId,
|
||||
'user_id' => $userId,
|
||||
'total_win' => $payload['total_win'] ?? '',
|
||||
]);
|
||||
continue;
|
||||
}
|
||||
if ($periodId > 0) {
|
||||
self::markBetWinNotifyOnce($periodId, $userId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user