1.修复websocket连接时出现错误的订阅消息
This commit is contained in:
@@ -194,7 +194,10 @@ class GameWebSocketServer
|
|||||||
GameWebSocketDispatcher::sendDirect($connection, 'ws.subscribed', [
|
GameWebSocketDispatcher::sendDirect($connection, 'ws.subscribed', [
|
||||||
'topics' => $finalTopics,
|
'topics' => $finalTopics,
|
||||||
], 'subscribed');
|
], 'subscribed');
|
||||||
self::pushAdminTestOddsPreview($connection, $finalTopics);
|
// 演示帧仅供后台 admin 联调;mobile 用户订阅后不应收到样例玩家的 bet.accepted / wallet.changed
|
||||||
|
if (GameWebSocketSubscriptionRegistry::isAdmin($connection->id)) {
|
||||||
|
self::pushAdminTestOddsPreview($connection, $finalTopics);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user