Explorar o código

添加网红判断

lvhao hai 6 meses
pai
achega
200f7a10f1
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      core/CoreApp/controllers/Fullorder.php

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

@@ -1008,6 +1008,12 @@ class Fullorder extends Start_Controller {
 					$way += 1;
 				}
 			}
+			//如果备注中出现网红的两个字 ,那么在fpdata种的品名中必须有 WH这两个字
+			if(stripos($post['shipremarks'],'网红') !== false){
+				if(stripos($post['fpdata'],'-2090-') === false){
+					echo json_encode(array('msg'=>'商品未勾选网红这个规格!','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))
 			{
 				echo json_encode(array('msg'=>'此快递方式必须选择美国仓!','success'=>false));exit;