shizhongqi il y a 4 ans
Parent
commit
ba8d7b764d
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      common/components/pushNotice.php

+ 2 - 2
common/components/pushNotice.php

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