|
@@ -999,6 +999,7 @@ function __construct(){
|
|
|
$data['client_secret'] = $secret;
|
|
|
$data['grant_type'] = 'client_credentials';
|
|
|
$res = $this->api->su_curl($data,$url,$header,'http_build_query');
|
|
|
+ $this->logic_ding->sendToDing("usp快递获取token的".$res);
|
|
|
$res = json_decode($res, true);
|
|
|
$token = $res['access_token'];//token
|
|
|
$dtime = $time+$res['expires_in']-3600;//过期时间 提前一个小时重新获取
|