1.优化中奖事件统一使用bet.win订阅中奖消息
This commit is contained in:
@@ -140,8 +140,12 @@ final class GameLiveService
|
||||
return;
|
||||
}
|
||||
|
||||
$betWins = is_array($settleOut['bet_wins'] ?? null) ? $settleOut['bet_wins'] : [];
|
||||
GameBetSettleService::publishBetWinsAfterCommit($betWins);
|
||||
GameBetSettleService::publishSettlementWinsAfterCommit(
|
||||
$settleOut,
|
||||
$recordId,
|
||||
is_string($row['period_no'] ?? null) ? (string) $row['period_no'] : '',
|
||||
(int) $resultNumber
|
||||
);
|
||||
|
||||
GameHotDataCoordinator::afterGameRecordCommitted($recordId);
|
||||
self::publishSnapshot(null);
|
||||
@@ -618,8 +622,12 @@ final class GameLiveService
|
||||
return ['ok' => false, 'msg' => __('Game live: settlement error') . ': ' . $e->getMessage()];
|
||||
}
|
||||
|
||||
$betWins = is_array($settleOut['bet_wins'] ?? null) ? $settleOut['bet_wins'] : [];
|
||||
GameBetSettleService::publishBetWinsAfterCommit($betWins);
|
||||
GameBetSettleService::publishSettlementWinsAfterCommit(
|
||||
$settleOut,
|
||||
$rid,
|
||||
(string) $record['period_no'],
|
||||
$finalNumber
|
||||
);
|
||||
|
||||
GameHotDataCoordinator::afterGameRecordCommitted($rid);
|
||||
|
||||
@@ -638,15 +646,6 @@ final class GameLiveService
|
||||
'jackpot_hits' => $jackpotHits,
|
||||
'server_time' => $now,
|
||||
]);
|
||||
if ($jackpotHits !== []) {
|
||||
GameWebSocketEventBus::publish('jackpot.hit', [
|
||||
'period_id' => $rid,
|
||||
'period_no' => (string) $record['period_no'],
|
||||
'result_number' => $finalNumber,
|
||||
'hits' => $jackpotHits,
|
||||
'server_time' => $now,
|
||||
]);
|
||||
}
|
||||
self::publishSnapshot(null);
|
||||
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user