瀏覽代碼

测试数据

lvhao 7 月之前
父節點
當前提交
df0cd7c62a
共有 1 個文件被更改,包括 2 次插入1 次删除
  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{