1.优化websocket中的jackpot.hit

This commit is contained in:
2026-05-28 16:52:12 +08:00
parent 4de4d4a721
commit 6b20b074a9
4 changed files with 29 additions and 4 deletions

View File

@@ -114,7 +114,12 @@ class GameWebSocketServer
$connection->wsAuth = $auth;
self::$connectionAuth[$connection->id] = $auth;
GameWebSocketSubscriptionRegistry::registerConnection($connection->id, (int) $auth['user_id'], $remoteIp);
GameWebSocketSubscriptionRegistry::registerConnection(
$connection->id,
(int) $auth['user_id'],
is_string($auth['mode'] ?? null) ? (string) $auth['mode'] : 'mobile',
$remoteIp
);
Log::channel('ws')->info('handshake ok', [
'connection_id' => $connection->id,