longyi hace 2 meses
padre
commit
3ec2d0bbeb
Se han modificado 2 ficheros con 9 adiciones y 9 borrados
  1. 7 7
      core/CoreApp/controllers/Ac.php
  2. 2 2
      core/CoreApp/models/Model_dhl.php

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

@@ -239,21 +239,21 @@ 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);
 		//echo $fullorder['zzl'];
 	//	echo  "<pre>";
 	//	var_dump($fullorder);
-		//$b = $this->usps->get_data_new($fullorder);
+		$b = $this->usps->get_data($fullorder);
 		
 // 		$b = $this->ups->get_data($fullorder);
-// 		echo "<pre>";
-// 		print_r($b);
-		//$this->_pdf($b['labelImage'],"test",date("Ymd"));
+		echo "<pre>";
+		print_r($b);
+		$this->_pdf($b['labelImage'],"test",date("Ymd"));
 		
 	}
 	

+ 2 - 2
core/CoreApp/models/Model_dhl.php

@@ -286,7 +286,7 @@ function __construct(){
 		}
 		
 		if(($data['country'] == 119) && !empty($data['r_tax_id'])){
-			$xml .= "<customerDetails>".$xmend;
+			$xml .= "<CustomerDetails>".$xmend;
 			$xml .= "<RegistrationNumbers>".$xmend;
 			$xml .= "<RegistrationNumber>".$xmend;
 			$xml .= '<Number>'.$data['r_tax_id'].'</Number>'.$xmend;
@@ -294,7 +294,7 @@ function __construct(){
 			$xml .= '<NumberIssuerCountryCode>MX</NumberIssuerCountryCode>'.$xmend;
 			$xml .= "</RegistrationNumber>".$xmend;
 			$xml .= "</RegistrationNumbers>".$xmend;
-			$xml .= "</customerDetails>".$xmend;
+			$xml .= "</CustomerDetails>".$xmend;
 		}
 		
 		if($data['bx'] > 0)