Ver Fonte

提交数据 监听信息

lvhao há 2 dias atrás
pai
commit
d8249664a4
1 ficheiros alterados com 10 adições e 1 exclusões
  1. 10 1
      core/CoreApp/models/Model_yuntu.php

+ 10 - 1
core/CoreApp/models/Model_yuntu.php

@@ -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 "";
         }