Преглед на файлове

修改usps的磅的重量

longyi преди 6 месеца
родител
ревизия
eef4a469ba
променени са 1 файла, в които са добавени 2 реда и са изтрити 5 реда
  1. 2 5
      core/CoreApp/models/Model_usps.php

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

@@ -307,8 +307,7 @@ function __construct(){
 		$list['packageDescription']['mailClass'] = $mailClass; // 邮寄类别
 		$list['packageDescription']['rateIndicator'] = 'CP'; // 费率指示器 CP
         $list['packageDescription']['weightUOM'] = 'lb'; // 重量单位
-        //$list['packageDescription']['weight'] =  number_format($data['zzl']/16, 1);//floor($data['zzl']/16); // 重量
-        $list['packageDescription']['weight'] =  number_format($data['zzl']/16,2)*1;
+        $list['packageDescription']['weight'] =  number_format($data['zzl']/16, 2)*1;//floor($data['zzl']/16); // 重量
         $list['packageDescription']['dimensionsUOM'] = 'in'; // 尺寸单位
         $list['packageDescription']['length'] = 1; // 长度
         $list['packageDescription']['height'] = 1; // 高度
@@ -332,9 +331,7 @@ function __construct(){
         $list['packageDescription']['destinationEntryFacilityType'] = 'NONE'; // 目的地设施类型
         $list['packageDescription']['customerReference'][0]['referenceNumber'] = $data['number']; // 客户参考
 		$list['packageDescription']['customerReference'][0]['printReferenceNumber'] = true; // 客户参考
-		echo "<pre>";
-		var_dump($list);
-
+		
         //$list['packageDescription']['carrierRelease'] = false; // 是否允许放置包裹
         //$list['packageDescription']['physicalSignatureRequired'] = true; // 是否需要实物签名
         //$list['packageDescription']['inductionZIPCode'] = ''; // 入境邮政编码