|
@@ -155,7 +155,15 @@ class Model_yuntu extends Lin_Model
|
|
|
$token = $this->getAccessToken();
|
|
|
|
|
|
if(empty($token)){
|
|
|
- throw new Exception("获取token失败");
|
|
|
+ $token = $this->makeToken();
|
|
|
+ if(empty($token)){
|
|
|
+ return [
|
|
|
+ 'x'=>'0',
|
|
|
+ 'Description'=>"获取token失败",
|
|
|
+ ];
|
|
|
+ }
|
|
|
+
|
|
|
+ //throw new Exception("获取token失败");
|
|
|
}
|
|
|
|
|
|
$query = [
|
|
@@ -399,6 +407,7 @@ class Model_yuntu extends Lin_Model
|
|
|
$token = $res['accessToken'];
|
|
|
return $token;
|
|
|
}else{
|
|
|
+ $this->logic_ding->sendToDing("云途快递获取token失败,返回参数[".json_encode($res)."]");
|
|
|
return "";
|
|
|
}
|
|
|
|