lvhao hace 22 horas
padre
commit
affe549370
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. 4 3
      core/CoreApp/controllers/Whlabel_bh.php

+ 4 - 3
core/CoreApp/controllers/Whlabel_bh.php

@@ -482,10 +482,10 @@ class Whlabel_bh extends Start_Controller {
 			$post['pm'] = $pm;
 			$post['title'] = $title;
 			$post['features'] = '-'.$features;
-			$post['number'] = date('YmdHis',time()).rand(100,999);
+			$post['number'] = date('YmdHis',time()).rand(1000,9999);
 			if(!$post['num'])
 			{
-			    $post['number'] = date("YmdHis").rand(100,999);
+			    $post['number'] = date("YmdHis").rand(1000,9999);
 			}
 			$time = time();
 			$post['time'] = $time;//操作时间
@@ -1434,11 +1434,12 @@ class Whlabel_bh extends Start_Controller {
 				"拼多多-QM"=>"0106003",
 			];
 			foreach($list as $k=>$v){
+				
 				$res = $this->logic_u9tools->getGoodInfoByErpSku($v[0],$v[1],$typeclass,$typeclassid,$classid);
-					
 				if($res['code']==1){
 					//传输料号开始
 					$post = $res['data'];
+					$post['number'] = $post['number'].$k;
 					$post['orderinfo'] = $v[2];
 					$post['num'] = $v[5];
 					$post['state'] = ($v[3] == '生产')?0:1;