wupengfei 1 年間 前
コミット
68fe072864
1 ファイル変更2 行追加2 行削除
  1. 2 2
      application/api/controller/Kuaishou.php

+ 2 - 2
application/api/controller/Kuaishou.php

@@ -19,7 +19,7 @@ class Kuaishou extends Base
         $Alibabahelper = new Alibabahelper();
         $s = $Alibabahelper->curl_https_get($url);
         $s = json_decode($s, true);
-        $this->success('ok',$s);
+        return $s['access_token'];
     }
 
     // api请求
@@ -30,7 +30,7 @@ class Kuaishou extends Base
         $param = input('post.param');
         $arr['appkey'] = $this->appKey;
         $arr['version'] = '1';
-        $arr['access_token'] = $this->access_token;
+        $arr['access_token'] = $this->getAccessToken();
         $arr['timestamp'] = $this->getMillisecond();
         $arr['method'] = trim($apiType);
         $arr['param'] = $param ? json_encode($param) : '{}';