|
@@ -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{
|