|
@@ -1081,7 +1081,10 @@ class Fullorder extends Start_Controller {
|
|
|
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)){
|
|
|
|
|
|
|
+ // 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;
|
|
echo json_encode(array('msg'=>'此快递方式不能美仓发货!','success'=>false));exit;
|
|
|
}
|
|
}
|
|
|
//仅独立站 地址美国对电话 10或者11位进行判断
|
|
//仅独立站 地址美国对电话 10或者11位进行判断
|
|
@@ -1928,9 +1931,12 @@ class Fullorder extends Start_Controller {
|
|
|
echo json_encode(array('msg'=>"此快递方式必须从美仓发货!",'success'=>false));exit;
|
|
echo json_encode(array('msg'=>"此快递方式必须从美仓发货!",'success'=>false));exit;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if($post['type'] == 5 && !in_array($post['express'],[2,63,64,81]))
|
|
|
|
|
- {
|
|
|
|
|
- echo json_encode(array('msg'=>"此快递方式不能美仓发货!",'success'=>false));exit;
|
|
|
|
|
|
|
+ // if($post['type'] == 5 && !in_array($post['express'],[2,63,64,81]))
|
|
|
|
|
+ // {
|
|
|
|
|
+ // 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($warehouse['zd'] == '1' && $warehouse['ys'] != '1' && $thisdata['library'] == '2' && $post['fpdata'] != $thisdata['fpdata'])
|
|
if($warehouse['zd'] == '1' && $warehouse['ys'] != '1' && $thisdata['library'] == '2' && $post['fpdata'] != $thisdata['fpdata'])
|