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

+ 2 - 1
src/GameClient.php

@@ -139,10 +139,11 @@ class GameClient {
             $response->mergeFromString($binaryData);
             if($response->getSuccess()){
                 // var_dump($response->getList());
+                echo "count:" .$response->getList()->count();
                 echo json_encode($response->getList(), JSON_PRETTY_PRINT);
                 echo "\n";
             }else{
-                echo "获取好友列表失败";
+                echo "获取好友列表失败" .$response->getErrMsg()->getErrorMsg();
                 echo "\n";
             }