lvhao 6 months ago
parent
commit
34bd676d5f

+ 6 - 0
core/CoreApp/controllers/Fullordersmt.php

@@ -821,6 +821,12 @@ class Fullordersmt extends Start_Controller {
 					$way += 1;
 					$way += 1;
 				}
 				}
 			}
 			}
+			//如果备注中出现网红的两个字 ,那么在fpdata种的品名中必须有 WH这两个字
+			if(stripos($post['shipremarks'],'网红') !== false){
+				if(stripos($post['fpdata'],'-2090-') === false){
+					echo json_encode(array('msg'=>'网红单请在商品名称中勾选WH!','success'=>false));exit;
+				}	
+			}
 			if((($post['express'] == 2 || $post['express'] == 63 || $post['express'] == 64) && $post['type'] != 5) || ($post['express'] != 2 && $post['express'] != 63 && $post['express'] != 64 && $post['type'] == 5))
 			if((($post['express'] == 2 || $post['express'] == 63 || $post['express'] == 64) && $post['type'] != 5) || ($post['express'] != 2 && $post['express'] != 63 && $post['express'] != 64 && $post['type'] == 5))
 			{
 			{
 				echo json_encode(array('msg'=>'此快递方式必须选择美国仓!','success'=>false));exit;
 				echo json_encode(array('msg'=>'此快递方式必须选择美国仓!','success'=>false));exit;

+ 6 - 0
core/CoreApp/controllers/Fullordertt.php

@@ -985,6 +985,12 @@ class Fullordertt extends Start_Controller {
 					$way += 1;
 					$way += 1;
 				}
 				}
 			}
 			}
+			//如果备注中出现网红的两个字 ,那么在fpdata种的品名中必须有 WH这两个字
+			if(stripos($post['shipremarks'],'网红') !== false){
+				if(stripos($post['fpdata'],'-2090-') === false){
+					echo json_encode(array('msg'=>'网红单请在商品名称中勾选WH!','success'=>false));exit;
+				}	
+			}
 			if((($post['express'] == 2 || $post['express'] == 63 || $post['express'] == 64) && $post['type'] != 5) || ($post['express'] != 2 && $post['express'] != 63 && $post['express'] != 64 && $post['type'] == 5))
 			if((($post['express'] == 2 || $post['express'] == 63 || $post['express'] == 64) && $post['type'] != 5) || ($post['express'] != 2 && $post['express'] != 63 && $post['express'] != 64 && $post['type'] == 5))
 			{
 			{
 				echo json_encode(array('msg'=>'此快递方式必须选择美国仓!','success'=>false));exit;
 				echo json_encode(array('msg'=>'此快递方式必须选择美国仓!','success'=>false));exit;