|
@@ -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) {
|