xy 3 週間 前
コミット
69783ffed1
1 ファイル変更2 行追加1 行削除
  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 "获取好友列表失败";