Wang Chen 4 years ago
parent
commit
e45975fd53
1 changed files with 4 additions and 3 deletions
  1. 4 3
      app/Libs/Push/OPPOPush/OPPOPushCommon.php

+ 4 - 3
app/Libs/Push/OPPOPush/OPPOPushCommon.php

@@ -260,9 +260,10 @@ class OPPOPushCommon
             ]
         ];
 
-        $client    = new Client(['base_uri' => config('push.server.oppo.auth'), 'timeout' => 10.0,]);
-        $response  = $client->request('POST', '', $data);
-        $body      = $response->getBody();
+        $client   = new Client(['base_uri' => config('push.server.oppo.auth'), 'timeout' => 10.0,]);
+        $response = $client->request('POST', '', $data);
+        $body     = $response->getBody();
+        $this->logPush(__FUNCTION__, 'body', compact('body'));
         $result    = json_decode($body, true);
         $authToken = getProp($result['data'], 'auth_token');
         if (!$authToken) {