Browse Source

提交usps新接口的token增加一个sub_track的类

lvhao 6 tháng trước cách đây
mục cha
commit
1cf118472d
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      core/CoreApp/models/Model_usps.php

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

@@ -927,7 +927,9 @@ function __construct(){
         $url = 'https://apis.usps.com/oauth2/v3/token';
 		$header = array('Content-Type: application/x-www-form-urlencoded');
 		$data = array();
-		$data['scope'] = 'addresses international-prices subscriptions payments pickup tracking labels scan-forms companies service-delivery-standards locations international-labels prices';
+		//$data['scope'] = 'addresses international-prices subscriptions payments pickup tracking labels scan-forms companies service-delivery-standards locations international-labels prices';
+		//多了个订阅的功能也不知道行不行 明天等token过期了 再试试
+		$data['scope'] = 'addresses international-prices subscriptions payments pickup tracking labels scan-forms companies service-delivery-standards locations international-labels prices subscriptions-tracking';
      	$data['client_id'] = $apikey;
      	$data['customer_registration_id'] = '27416217';
 		$data['mailer_id'] = '902510013';