1.优化中奖事件统一使用bet.win订阅中奖消息
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user