1.优化中奖事件统一使用bet.win订阅中奖消息

This commit is contained in:
2026-05-26 15:19:21 +08:00
parent 5cbb7ea485
commit d8d03662ed
2 changed files with 18 additions and 3 deletions

View File

@@ -180,7 +180,15 @@ final class GameBetSettleService
'update_time' => $now,
]);
GameHotDataCoordinator::afterUserCommitted($userId);
GameWebSocketPayloadHelper::publishUserStreak($userId, $next);
$periodNo = isset($aggregateByUser[$userId]['period_no']) ? (string) $aggregateByUser[$userId]['period_no'] : '';
GameWebSocketPayloadHelper::publishUserStreak($userId, $next, [
// 明确标记本期结算结果,客户端可直接判断“当前用户是否中奖”。
'is_win' => $hadWin,
'period_id' => $recordId,
'period_no' => $periodNo,
'result_number' => $resultNumber,
'settled_at' => $now,
]);
}
$jackpotHits = [];