Преглед изворни кода

修改usps的token访问域

lvhao пре 6 месеци
родитељ
комит
2fa04b4738
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      core/CoreApp/models/Model_usps.php

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

@@ -927,9 +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['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';