Bläddra i källkod

xianlaxianshang bimianchongtu

longyi 6 månader sedan
förälder
incheckning
3be17fa137
2 ändrade filer med 10 tillägg och 5 borttagningar
  1. 5 3
      core/CoreApp/controllers/Ac.php
  2. 5 2
      core/CoreApp/models/Model_usps.php

+ 5 - 3
core/CoreApp/controllers/Ac.php

@@ -218,10 +218,12 @@ class Ac extends Start_Controller {
 		//$b = $this->usps->get_logistics($fullorder);
 	//	$fullorder['printcode'] = 'HUALEI-DHL';
 		//$fullorder['js'] = 1;
-		$fullorder['printcode'] = 'usps_priority';
-		$b  = $this->cne->get_data($fullorder);
+// 		$fullorder['printcode'] = 'usps_priority';
+// 		$b  = $this->cne->get_data($fullorder);
 		//$b = $this->fedexv1->get_data($fullorder);
-		
+		echo $fullorder['zzl'];
+		$b = $this->usps->get_data_new($fullorder);
+	
 		echo "<pre>";
 		print_r($b);
 	}

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

@@ -307,7 +307,8 @@ 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, 1);//floor($data['zzl']/16); // 重量
+        $list['packageDescription']['weight'] =  number_format($data['zzl']/16,2)*1;
         $list['packageDescription']['dimensionsUOM'] = 'in'; // 尺寸单位
         $list['packageDescription']['length'] = 1; // 长度
         $list['packageDescription']['height'] = 1; // 高度
@@ -331,7 +332,9 @@ 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'] = ''; // 入境邮政编码