瀏覽代碼

修改数据

lvhao 3 月之前
父節點
當前提交
8432706d45
共有 1 個文件被更改,包括 7 次插入0 次删除
  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){