xy hace 3 semanas
padre
commit
69783ffed1
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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 "获取好友列表失败";