Browse Source

修改打印

longyi 4 months ago
parent
commit
073915fbf9
2 changed files with 6 additions and 6 deletions
  1. 5 5
      core/CoreApp/controllers/Ac.php
  2. 1 1
      core/CoreApp/models/Model_usps.php

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

@@ -208,8 +208,8 @@ class Ac extends Start_Controller {
 		}
 		$fullorder['pt'] = $pt;
 		$fullorder['printnumber'] += 2;
-		$fullorder['address'] = "221 5TH ST # APT305";
-		$fullorder['city'] = "W SACRAMENTO";
+// 		$fullorder['address'] = "221 5TH ST # APT305";
+// 		$fullorder['city'] = "W SACRAMENTO";
 // 		echo "<pre>";
 // 		var_dump($fullorder['sbbm']);
 // 		die;
@@ -239,9 +239,9 @@ class Ac extends Start_Controller {
 		
 		
 		//$fullorder['printcode'] = 'usps_priority';
-// 		$b  = $this->usps->get_data($fullorder);
-// 		print_r($b);
-//         die;
+ 		$b  = $this->usps->get_data($fullorder);
+ 		print_r($b);
+         die;
 //         echo "<pre>";
 // 		$b = $this->fedexv1->get_data($fullorder);
 // 		var_dump($b);

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

@@ -369,7 +369,7 @@ function __construct(){
             $list['packageDescription']['extraServices']= $fw; // 额外服务
 		}
 		if($data['bx'] > 0){
-			$list['packageDescription']['packageOptions']['packageValue'] = $data['bx']; // 包裹选项   设置保险金额的选项
+			$list['packageDescription']['packageOptions']['packageValue'] = $data['bx']*1; // 包裹选项   设置保险金额的选项
 		}else{
 			
 			//$list['packageDescription']['packageOptions']['packageValue'] = 100; // 包裹选项   设置保险金额的选项