walkor 12 năm trước cách đây
mục cha
commit
7035c1aa51
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Workers/GameGateway.php

+ 1 - 1
Workers/GameGateway.php

@@ -168,7 +168,7 @@ class GameGateway extends WORKERMAN\Core\SocketWorker
                     return;
                 }
                 $this->uidConnMap[$uid] = $socket_id;
-                $this->connections[$socket_id] = $uid;
+                $this->connUidMap[$socket_id] = $uid;
                 $buf = new GameBuffer();
                 $buf->body = 'connect success';
                 $this->sendToUid($uid, $buf->getBuffer());