Explorar o código

提交fullorder的readonly的美仓

lvhao hai 1 día
pai
achega
c229e5d39e
Modificáronse 1 ficheiros con 20 adicións e 2 borrados
  1. 20 2
      core/CoreApp/controllers/Fullorder.php

+ 20 - 2
core/CoreApp/controllers/Fullorder.php

@@ -1855,10 +1855,28 @@ class Fullorder extends Start_Controller {
 					$way += 1;
 				}
 			}
-			if((($post['express'] == 2 || $post['express'] == 63 || $post['express'] == 64 || $post['express'] == 81) && $post['type'] != 5) || ($post['express'] != 2 && $post['express'] != 63 && $post['express'] != 64 && $post['express'] != 81 && $post['type'] == 5))
+
+
+			// if((($post['express'] == 2 || $post['express'] == 63 || $post['express'] == 64 || $post['express'] == 81) && $post['type'] != 5) || ($post['express'] != 2 && $post['express'] != 63 && $post['express'] != 64 && $post['express'] != 81 && $post['type'] == 5))
+			// {
+			// 	echo json_encode(array('msg'=>'此快递方式必须选择美仓!','success'=>false));exit;
+			// }
+
+
+			if((($post['express'] == 2 || $post['express'] == 63 || $post['express'] == 64 || $post['express'] == 81 || $post['express'] == 85 || $post['express'] == 87 ) && $post['type'] != 5) )
 			{
-				echo json_encode(array('msg'=>'此快递方式必须选择美仓!','success'=>false));exit;
+				echo json_encode(array('msg'=>'此快递方式必须从美仓发货!','success'=>false));exit;
+			}
+
+			// if( ($post['express'] != 2 && $post['express'] != 63 && $post['express'] != 64 && $post['express'] != 81 && $post['express'] != 85 && $post['express'] != 87 && $post['type'] == 5)){
+			// 	echo json_encode(array('msg'=>'此快递方式不能美仓发货!','success'=>false));exit;
+			// }
+			if((!in_array($post['express'],[2,63,64,81,85,86,87])) && ($post['type'] == 5)){
+				echo json_encode(array('msg'=>'此快递方式不能美仓发货!','success'=>false));exit;
 			}
+
+
+
 			if($way == count($whlabeldata) && $post['type'] != 12)
 			{
 				echo json_encode(array('msg'=>'必须选择特殊仓!','success'=>false));exit;