|
|
@@ -258,6 +258,21 @@ class Model_logic_order extends Lin_Model {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ //惠程英国(ges)
|
|
|
+ if($post['express'] == 88){
|
|
|
+ if(!empty($post['address2'])){
|
|
|
+ return [
|
|
|
+ 'code'=>-1,
|
|
|
+ "msg"=>'此快递方式不支持地址2!'
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ if(strlen($post['address']) > 45){
|
|
|
+ return [
|
|
|
+ 'code'=>-1,
|
|
|
+ "msg"=>'此快递方式地址长度不能超过45!'
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }
|
|
|
if($post['express']== 79){
|
|
|
if(!in_array($post['country'],[13,20,30,47,49,51,59,62,63,69,71,83,88,90,100,105,106,114,131,146,147,151,164,168,174,1017,1018])){
|
|
|
return [
|
|
|
@@ -478,6 +493,21 @@ class Model_logic_order extends Lin_Model {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ //惠程英国(ges)
|
|
|
+ if($post['express'] == 88){
|
|
|
+ if(!empty($post['address2'])){
|
|
|
+ return [
|
|
|
+ 'code'=>-1,
|
|
|
+ "msg"=>'此快递方式不支持地址2!'
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ if(strlen($post['address']) > 45){
|
|
|
+ return [
|
|
|
+ 'code'=>-1,
|
|
|
+ "msg"=>'此快递方式地址长度不能超过45!'
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }
|
|
|
if($post['express']== 79){
|
|
|
if(!in_array($post['country'],[13,20,30,47,49,51,59,62,63,69,71,83,88,90,100,105,106,114,131,146,147,151,164,168,174,1017,1018])){
|
|
|
return [
|