longyi 6 ماه پیش
والد
کامیت
ae09a183ff
2فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 1 1
      core/CoreApp/controllers/Aatest.php
  2. 4 4
      core/CoreApp/models/Model_usps.php

+ 1 - 1
core/CoreApp/controllers/Aatest.php

@@ -89,7 +89,7 @@ class Aatest extends Start_Controller {
 		// die;
 		// die;
 		
-		$list = $this->fullorder->findall("waybill = 9205590251001335234515");
+		$list = $this->fullorder->find_all("waybill = 9200190251001335252684");
 		$v = $list['0'];
 		@$fs = $this->usps->get_logistics($v);
 		$csck[] = array($v['number'],$fs['f'],$fs['content']);

+ 4 - 4
core/CoreApp/models/Model_usps.php

@@ -1051,19 +1051,19 @@ function __construct(){
 		$number = $info['waybill'];
 	
 		$token = $this->get_token();
-		$this->logic_ding->sendToDing("usps获取退货面单的请求数据".$number);
-		$this->logic_ding->sendToDing("usps获取退货面单的token".$token);
+		$this->logic_ding->sendToDing("usps获取快递轨迹的请求数据".$number);
+		$this->logic_ding->sendToDing("usps获取快递轨迹的token".$token);
 	
 		$url = 'https://apis.usps.com/tracking/v3/tracking/'.$number."?expand=DETAIL";
 		$header = array('Authorization: Bearer '.$token,'Content-Type: application/json',"Accept:application/json");
 		$res= $this->su_curl([
 		],$url,$header,'http_build_query',$timeout=300,"GET",'');
-		$this->logic_ding->sendToDing("usps获取运单".$res);
+		$this->logic_ding->sendToDing("usps快递轨迹".$res);
 		if(is_string($res)){
 			$res = json_decode($res,true);
 		}
 		if(isset($res['error'])){
-		    $this->logic_ding->sendToDing("usps获取运单报错".json_encode($res,JSON_UNESCAPED_UNICODE));
+		    $this->logic_ding->sendToDing("usps获取运单轨迹报错".json_encode($res,JSON_UNESCAPED_UNICODE));
 		    
 		}
 		//如果没有报错还没有trackingEvents这个字段就说明异常了;