Ver Fonte

测试usps的改动

longyi há 5 meses atrás
pai
commit
967220a231
2 ficheiros alterados com 12 adições e 5 exclusões
  1. 6 4
      core/CoreApp/controllers/Ac.php
  2. 6 1
      core/CoreApp/models/Model_usps.php

+ 6 - 4
core/CoreApp/controllers/Ac.php

@@ -217,18 +217,20 @@ class Ac extends Start_Controller {
 		//$b = $this->yuntu->get_data($fullorder);
 		//$b = $this->usps->get_logistics($fullorder);
 	//	$fullorder['printcode'] = 'HUALEI-DHL';
-		//$fullorder['js'] = 2;
+		$fullorder['js'] = 2;
+		//$fullorder['bx'] = 110;
+		$fullorder['qm'] = 1;
 // 		$fullorder['printcode'] = 'usps_priority';
 // 		$b  = $this->cne->get_data($fullorder);
 		//$b = $this->fedexv1->get_data($fullorder);
 		//echo $fullorder['zzl'];
 		echo  "<pre>";
-	    die;
-		//$b = $this->usps->get_data_new($fullorder);
+		$b = $this->usps->get_data_new($fullorder);
+		
 		//$b = $this->ups->get_data($fullorder);
 		echo "<pre>";
 		print_r($b);
-		$this->_pdf($b['labelImage'],"test",date("Ymd"));
+		//$this->_pdf($b['labelImage'],"test",date("Ymd"));
 		
 	}
 	

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

@@ -319,7 +319,10 @@ function __construct(){
 		$fw = array();
 		if($data['bx'] > 0)
 		{
-			$fw[] = 930;
+		   
+		        $fw[] = 925;
+		    
+			
 		}
 		if($data['qm'] == 1)
 		{
@@ -330,6 +333,8 @@ function __construct(){
 			}
 			
 		}
+		var_dump($fw);
+		
 		if($fw)
 		{
             $list['packageDescription']['extraServices']= $fw; // 额外服务