Procházet zdrojové kódy

提交修改数据

lvhao před 11 hodinami
rodič
revize
335d91e170
1 změnil soubory, kde provedl 6 přidání a 3 odebrání
  1. 6 3
      core/CoreApp/models/Model_hualeiv1.php

+ 6 - 3
core/CoreApp/models/Model_hualeiv1.php

@@ -83,8 +83,11 @@ function __construct(){
 			$product_id  = 1222;
 			$link = 'param=';
 			$ys = 0;//
+		}else if($data['printcode'] == 'HUSLEI-HC-FEDEX2'){
+			$product_id  =  1361;
+			$link = 'param=';
+			$ys = 0;//
 		}
-
 		$rs = $this->curlRequest('http://123.207.33.169:8082/selectAuth.htm',"username=LONGYI&password=1Z5MEC");
 		$reData = json_decode(str_replace("'", "\"", $rs['result']));
 		$customer_id = $reData->customer_id;
@@ -182,7 +185,7 @@ function __construct(){
 				'duty_type'=>$duty_type,
 			);
 		}
-		if($data['printcode'] == 'HUALEI-GES-UK' || $data['printcode'] == 'HUALEI-XB-CA'){
+		if($data['printcode'] == 'HUALEI-GES-UK' || $data['printcode'] == 'HUALEI-XB-CA' || $data['printcode'] == 'HUALEI-WMS' || $data['printcode'] == 'HUSLEI-HC-FEDEX2'){
 		    if($data['printnumber'] > 0){
 		        $count['order_customerinvoicecode'] = $data['number']."-".$data['printnumber'];
 		    }
@@ -213,7 +216,7 @@ function __construct(){
 				$pdf = $this->get_pdf($resultData['order_id']);
 				if($pdf['x'] == 1)
 				{
-					if($product_id == 4361)
+					if($product_id == 4361 || $product_id == 1361)
 					{
 					    $g = array('x'=>'1','ys'=>0,'waybill'=>$resultData['order_privatecode'],'waybill2'=>$resultData['tracking_number'],'label'=>$pdf['label']);
 					}else if($product_id == 4301 || $product_id == 4461 || $product_id == 4181){