xy 3 weeks ago
parent
commit
69783ffed1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/GameClient.php

+ 2 - 1
src/GameClient.php

@@ -138,7 +138,8 @@ class GameClient {
             $response = new ResFriendList();
             $response->mergeFromString($binaryData);
             if($response->getSuccess()){
-                var_dump($response->getList());
+                // var_dump($response->getList());
+                echo json_encode($response->getList(), JSON_PRETTY_PRINT);
                 echo "\n";
             }else{
                 echo "获取好友列表失败";