lvhao hace 3 meses
padre
commit
8432706d45
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      core/CoreApp/controllers/Fullorder.php

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

@@ -1031,6 +1031,13 @@ class Fullorder extends Start_Controller {
 			if( ($post['express'] != 2 && $post['express'] != 63 && $post['express'] != 64 && $post['type'] == 5)){
 				echo json_encode(array('msg'=>'此快递方式不能美仓发货!','success'=>false));exit;
 			}
+			//仅独立站 地址美国对电话 10或者11位进行判断
+			if($post['country'] == 192){
+				if((strlen($post['phone'])!= 10) && (strlen($post['phone'])!= 11)){
+					echo json_encode(array('msg'=>'美国电话号码应为10/11位!','success'=>false));exit;
+				}
+			}
+			
 			//减少代码复用吧
 			$lo_ret = $this->logic_order->checkEditExpress($post);
 			if($lo_ret['code'] != 1){