|
@@ -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) : '{}';
|