Browse Source

切换惠程的dhl

lvhao 6 months ago
parent
commit
17d30c52ea
2 changed files with 12 additions and 1 deletions
  1. 6 1
      core/CoreApp/controllers/Systemprint.php
  2. 6 0
      core/CoreApp/models/Model_hualei.php

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

@@ -1487,7 +1487,7 @@ class Systemprint extends Start_Controller {
 					}
 					**/
 				}
-				else if($fullorder['printcode'] == "HUALEI-FEDEX" || $fullorder['printcode'] == "HUALEI-ARAMEX-S" || $fullorder['printcode'] == "HUALEI-ARAMEX-G" || $fullorder['printcode'] == "HUALEI-GES-EU" || $fullorder['printcode'] == "HUALEI-DHL-A1" || $fullorder['printcode'] == "HUALEI-WMS")
+				else if($fullorder['printcode'] == "HUALEI-FEDEX" || $fullorder['printcode'] == "HUALEI-ARAMEX-S" || $fullorder['printcode'] == "HUALEI-ARAMEX-G" || $fullorder['printcode'] == "HUALEI-GES-EU" || $fullorder['printcode'] == "HUALEI-DHL-A1" || $fullorder['printcode'] == "HUALEI-WMS"||$fullorder['printcode'] == 'HUALEI-DHL')
 				{
 					$barcode = $this->hualei->get_data($fullorder);
 					$bctime = date('Ymd',$time);
@@ -1547,6 +1547,11 @@ class Systemprint extends Start_Controller {
 									{
 								        $type = 1;
 									}
+									else if($fullorder['printcode'] == "HUALEI-DHL")
+									{
+								        //$type = 5;
+										$type = 1;
+									}
 									else
 									{
 								        $type = 2;

+ 6 - 0
core/CoreApp/models/Model_hualei.php

@@ -47,6 +47,12 @@ function __construct(){
 			$link = 'param=';
 			$ys = 0;//非延时获取运单
 		}
+		else if ($data['printcode'] == "HUALEI-DHL")//TNT
+		{
+			$product_id = 7141;
+			$link = 'param=';
+			$ys = 0;//
+		}
 		$rs = $this->curlRequest('http://123.207.33.169:8082/selectAuth.htm',"username=LY&password=ly999");
 		$reData = json_decode(str_replace("'", "\"", $rs['result']));
 		$customer_id = $reData->customer_id;