Explorar el Código

修改dhl9区添加

lvhao hace 1 mes
padre
commit
b18a62918b
Se han modificado 2 ficheros con 8 adiciones y 2 borrados
  1. 1 1
      core/CoreApp/controllers/Systemprint.php
  2. 7 1
      core/CoreApp/models/Model_dhl.php

+ 1 - 1
core/CoreApp/controllers/Systemprint.php

@@ -755,7 +755,7 @@ class Systemprint extends Start_Controller {
 			$pdfnum = 1;//PDF打印几遍
 			if($fullorder['printtype'] == 1 && $fullorder['library'] != 2)// && $fullorder['library'] != 2
 			{
-				if($fullorder['printcode'] == "DHL")//如果打印过那么重新获取运单
+				if($fullorder['printcode'] == "DHL" || $fullorder['printcode'] == "DHL-9")//如果打印过那么重新获取运单
 				{
 				    $barcode = $this->dhl->get_data($fullorder);//获取DHL快递信息
 					if(isset($barcode['AirwayBillNumber']))

+ 7 - 1
core/CoreApp/models/Model_dhl.php

@@ -41,7 +41,13 @@ function __construct(){
 		$id = 'XUCHANGLONGY';
 		$pass = 'dJ84as3ELr';
 		//$sid = '603521441';//官方DHL
-		$sid = '605062090';//官方DHL美国
+
+		if($data['printcode'] == 'DHL-9'){
+			$sid = '606847908';//DHL官方(9区)
+		}else{
+			$sid = '605062090';//官方DHL美国
+		}
+		
 		$xmend = "\n";
 		$Pieces = '';
 		for($i=0;$i<$data['zjs'];$i++)