Browse Source

修改为e4

lvhao 6 tháng trước cách đây
mục cha
commit
fa5857b119
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

@@ -295,6 +295,7 @@ function __construct(){
 
 
         $mailClass = 'USPS_GROUND_ADVANTAGE';
+		$rateIndicator = 'CP';
         // 包裹描述信息
 		if($data['js'] == 1)
 		{
@@ -302,10 +303,11 @@ function __construct(){
 		}
 		else if($data['js'] == 2)
 		{
+			$rateIndicator = 'E4';
 			$mailClass = 'PRIORITY_MAIL_EXPRESS';
 		}
 		$list['packageDescription']['mailClass'] = $mailClass; // 邮寄类别
-		$list['packageDescription']['rateIndicator'] = 'CP'; // 费率指示器 CP
+		$list['packageDescription']['rateIndicator'] = $rateIndicator; // 费率指示器 CP
         $list['packageDescription']['weightUOM'] = 'lb'; // 重量单位
         $list['packageDescription']['weight'] =  number_format($data['zzl']/16, 2)*1;//floor($data['zzl']/16); // 重量
         $list['packageDescription']['dimensionsUOM'] = 'in'; // 尺寸单位