Browse Source

添加在途导入的信息 设置订单号

lvhao 4 months ago
parent
commit
084d885584
1 changed files with 8 additions and 0 deletions
  1. 8 0
      core/CoreApp/controllers/Whlabeltransport.php

+ 8 - 0
core/CoreApp/controllers/Whlabeltransport.php

@@ -180,6 +180,14 @@ class Whlabeltransport extends Start_Controller {
 			$order_no = "ZT".date("ymdHis");
 		    foreach ($list as $key=>$value)
 		    {
+				if($key == 0){
+					if(!empty($value[5])){
+						if(strpos($value[5], "ZT") !== false){
+							$order_no = $value[5];
+						}
+					}
+					
+				}
 				$time = time();
 				if($value['0'] == "")
 				{