Browse Source

周六晚上线上修改网红bug

longyi 6 tháng trước cách đây
mục cha
commit
66d73ea3b5

+ 8 - 5
core/CoreApp/controllers/Fullorder.php

@@ -1008,12 +1008,15 @@ 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'=>'网红单请在商品名称中勾选WH!','success'=>false));exit;
-				}	
+			//如果备注中出现网红的两个字 ,那么在fpdata种的品名中必须有 WH这两个字     且美仓不用
+			if($post['type'] !=5 ){
+			    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))
 			{
 				echo json_encode(array('msg'=>'此快递方式必须选择美国仓!','success'=>false));exit;

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 4347 - 4345
core/CoreApp/controllers/Fullordersmt.php


+ 7 - 5
core/CoreApp/controllers/Fullordertt.php

@@ -985,11 +985,13 @@ class Fullordertt extends Start_Controller {
 					$way += 1;
 				}
 			}
-			//如果备注中出现网红的两个字 ,那么在fpdata种的品名中必须有 WH这两个字
-			if(stripos($post['shipremarks'],'网红') !== false){
-				if(stripos($post['fpdata'],'-2090-') === false){
-					echo json_encode(array('msg'=>'网红单请在商品名称中勾选WH!','success'=>false));exit;
-				}	
+			//如果备注中出现网红的两个字 ,那么在fpdata种的品名中必须有 WH这两个字     且美仓不用
+			if($post['type'] !=5 ){
+			    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))
 			{