Browse Source

测试数据

lvhao 7 months ago
parent
commit
df0cd7c62a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/CoreApp/models/Model_usps.php

+ 2 - 1
core/CoreApp/models/Model_usps.php

@@ -1036,11 +1036,12 @@ function __construct(){
 	{
 		$token = $this->get_token();
 		
-		$url = 'https://api.usps.com/tracking/v3/tracking/'.$number;
+		$url = 'https://apis.usps.com/tracking/v3/tracking/'.$number;
 		$header = array('Authorization: Bearer '.$token,'Content-Type: application/json',"Accept: application/vnd.usps.labels+json");
 		$res= $this->su_curl([
 			"expand"=>"DETAIL",
 		],$url,$header,'http_build_query',$timeout=300,"GET",'');
+
 		if(is_string($res)){
 			$this->logic_ding->sendToDing("usps追踪1".$res);
 		}else{