|
|
@@ -101,11 +101,11 @@ class pushNotice
|
|
|
$response = $client->request('POST', self::baseUrl . '/auth', [
|
|
|
'form_params' => [
|
|
|
"sign" => hash('sha256', self::appKey . time() . self::masterSecret),
|
|
|
- "timestamp" => round(microtime(ture) * 1000),
|
|
|
+ "timestamp" => round(microtime(true) * 1000),
|
|
|
"appkey" => self::appKey
|
|
|
]
|
|
|
]);
|
|
|
- $data = json_decode($response, ture);
|
|
|
+ $data = json_decode($response, true);
|
|
|
}while(!isset($data['data']['token']) && $i > 3);
|
|
|
|
|
|
if ($i > 3) {
|