|
@@ -251,6 +251,21 @@ class Model_logic_order extends Lin_Model {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ if($post['type'] != 5 && in_array($post['express'],[2,63,64]))
|
|
|
+ {
|
|
|
+ return [
|
|
|
+ 'code'=>-1,
|
|
|
+ "msg"=>"此快递方式必须从美仓发货!"
|
|
|
+ ];
|
|
|
+ }
|
|
|
+
|
|
|
+ if($post['type'] == 5 && !in_array($post['express'],[2,63,64]))
|
|
|
+ {
|
|
|
+ return [
|
|
|
+ 'code'=>-1,
|
|
|
+ "msg"=>"此快递方式不能美仓发货!"
|
|
|
+ ];
|
|
|
+ }
|
|
|
// if(in_array($post['express'],[2,63,64])){
|
|
|
// if($post['type'] != 5){
|
|
|
// return [
|