xy 3 tygodni temu
rodzic
commit
ab3edb0bdb
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 3
      src/client.php

+ 1 - 3
src/client.php

@@ -28,7 +28,6 @@ class GameClient {
             throw new Exception("序列化失败:返回空数据");
         }
         
-        echo "序列化结果(HEX): " . bin2hex($binaryData) . "\n";
           
         $options = [
             'http' => [
@@ -61,7 +60,6 @@ class GameClient {
             $userResponse = new ResLogin(); 
             if ($response !== false) {
                 
-                print_r($response);
                 $userResponse->mergeFromString($response);
                 print_r($userResponse->getNikeName());
                 if ($userResponse->getErrMsg()!=null) {
@@ -92,7 +90,7 @@ class GameClient {
 
     private function initWebSocketConnection() {
         // 初始化WebSocket客户端
-        $this->client = new BinaryWebSocketClient('ws://game.example.com:8080');
+        $this->client = new BinaryWebSocketClient('https://leaf.ktle.top');
         
         // 注册消息处理器
         $this->client->on(MsgID::RESENTERHALL, function(ResEnterHall $response) {