|
@@ -40,6 +40,7 @@ class Fullordersmt extends Start_Controller {
|
|
|
$this->load->_model('Model_power','power');
|
|
|
$this->load->_model('Model_setting','setting');
|
|
|
$this->load->_model('Model_returngoods','returngoods');
|
|
|
+ $this->load->_model("Model_logic_order","logic_order");
|
|
|
}
|
|
|
//定义方法的调用规则 获取URI第二段值
|
|
|
public function _remap($arg,$arg_array)
|
|
@@ -837,9 +838,14 @@ class Fullordersmt extends Start_Controller {
|
|
|
{
|
|
|
echo json_encode(array('msg'=>'必须选择特殊仓!','success'=>false));exit;
|
|
|
}
|
|
|
- if($post['express'] == 42 && $post['sbpm'] != 'Human Hair Wigs' && $post['sbpm'] != 'Human Hair Goods')//$post['express'] == 3 ||
|
|
|
- {
|
|
|
- echo json_encode(array('msg'=>'此快递方式必须选择Human Hair Wigs/Human Hair Goods!','success'=>false));exit;
|
|
|
+ // if($post['express'] == 42 && $post['sbpm'] != 'Human Hair Wigs' && $post['sbpm'] != 'Human Hair Goods')//$post['express'] == 3 ||
|
|
|
+ // {
|
|
|
+ // echo json_encode(array('msg'=>'此快递方式必须选择Human Hair Wigs/Human Hair Goods!','success'=>false));exit;
|
|
|
+ // }
|
|
|
+ //减少代码复用吧
|
|
|
+ $lo_ret = $this->logic_order->checkEditExpress($post);
|
|
|
+ if($lo_ret['code'] != 1){
|
|
|
+ echo json_encode(array('msg'=>$lo_ret['msg'],'success'=>false));exit;
|
|
|
}
|
|
|
if($post['express'] == 24 && $post['sbpm'] != 'Hair Sample' && $post['sbpm'] != 'Human Hair Wigs' && $post['sbpm'] != 'Human Hair Goods')//$post['express'] == 3 ||
|
|
|
{
|