1.优化websocket中的jackpot.hit
This commit is contained in:
@@ -621,6 +621,26 @@ final class GameBetSettleService
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 兜底补偿:在派彩期内(status=3)允许周期性调用,确保 bet.win / jackpot.hit 最终可达。
|
||||
* - bet.win 由 dfw:v1:ws:betwin:{period_id}:{user_id} 去重
|
||||
* - jackpot.hit 由 dfw:v1:ws:jackpot_hit:{period_id} 去重
|
||||
* - user.streak / wallet.changed 仍受 dfw:v1:settle:notify:{period_id} 约束
|
||||
*/
|
||||
public static function ensurePeriodWinAndJackpotNotifications(int $periodId, string $periodNo, int $resultNumber): void
|
||||
{
|
||||
if ($periodId <= 0 || $periodNo === '' || $resultNumber < 1) {
|
||||
return;
|
||||
}
|
||||
self::publishSettlementWinsAfterCommit([
|
||||
'jackpot_hits' => [],
|
||||
'bet_wins' => [],
|
||||
'user_streak_events' => [],
|
||||
'wallet_events' => [],
|
||||
'settled_order_count' => 0,
|
||||
], $periodId, $periodNo, $resultNumber);
|
||||
}
|
||||
|
||||
/**
|
||||
* 开奖后兜底:库内已有中奖但 Redis 无 bet.win 去重键时补推(避免 streak/wallet 整期 dedup 或旧版逻辑漏推)。
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user