|
@@ -265,6 +265,7 @@ class Model_logic_order extends Lin_Model {
|
|
|
"msg"=>"美国的邮编需按5位数格式提交!"
|
|
|
];
|
|
|
}
|
|
|
+
|
|
|
|
|
|
}
|
|
|
if($post['type'] != 5 && in_array($post['express'],[2,63,64]))
|
|
@@ -282,6 +283,16 @@ class Model_logic_order extends Lin_Model {
|
|
|
"msg"=>"此快递方式不能美仓发货!"
|
|
|
];
|
|
|
}
|
|
|
+
|
|
|
+ //云尚 3pe fedex usps 必须收件国家位美国
|
|
|
+ if(in_array($post['express'],[2,24,31,63,64,71,75,76,77])){
|
|
|
+ if($post['country'] != 192 ){
|
|
|
+ return [
|
|
|
+ 'code'=>-1,
|
|
|
+ "msg"=>"非美国不可使用本快递方式!"
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }
|
|
|
// if(in_array($post['express'],[2,63,64])){
|
|
|
// if($post['type'] != 5){
|
|
|
// return [
|
|
@@ -435,6 +446,15 @@ class Model_logic_order extends Lin_Model {
|
|
|
// ];
|
|
|
// }
|
|
|
// }
|
|
|
+ //云尚 3pe fedex usps 必须收件国家位美国
|
|
|
+ if(in_array($post['express'],[2,24,31,63,64,71,75,76,77])){
|
|
|
+ if($post['country'] != 192 ){
|
|
|
+ return [
|
|
|
+ 'code'=>-1,
|
|
|
+ "msg"=>"非美国不可使用本快递方式!"
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }
|
|
|
return [
|
|
|
'code'=>1,
|
|
|
"msg"=>"ok"
|