浏览代码

->body => 'body'

walkor 12 年之前
父节点
当前提交
23cbc43cd8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Workers/GameGateway.php

+ 2 - 2
Workers/GameGateway.php

@@ -225,14 +225,14 @@ class GameGateway extends WORKERMAN\Core\SocketWorker
         if(!$from_uid)
         {
             // 没传sid
-            if(empty($this->data->body))
+            if(empty($this->data['body']))
             {
                 $this->notice("onConnect miss sid ip:".$this->getRemoteIp(). " data[".serialize($this->data)."]");
                 $this->closeClient($this->currentDealFd);
                 return;
             }
             // 发送onconnet事件包,包体是sid
-            $this->sendToWorker($this->onConnectBuffer.$this->data->body);
+            $this->sendToWorker($this->onConnectBuffer.$this->data['body']);
             return;
         }