dyjh hace 6 años
padre
commit
532a57be97
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Http/Controllers/Api/V1/AlbumController.php

+ 1 - 1
app/Http/Controllers/Api/V1/AlbumController.php

xqd
@@ -1955,7 +1955,7 @@ class AlbumController extends Controller
         $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" . $app->app_id . "&secret=" . $app->app_secret;
         $data = $this->curlGet($url);
         \Log::info($data);
-        $data = json_decode($data["content"], true);
+        $data = json_decode($data, true);
         if( !isset($data["access_token"]) )
         {
             return false;