lvhao 1 месяц назад
Родитель
Сommit
b18a62918b
2 измененных файлов с 8 добавлено и 2 удалено
  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++)