diff --git a/api/controllers/wxapp/app/Business.php b/api/controllers/wxapp/app/Business.php index e646aa74..0b2aa616 100644 --- a/api/controllers/wxapp/app/Business.php +++ b/api/controllers/wxapp/app/Business.php @@ -50,8 +50,8 @@ class Business extends Wxapp{ //$if_pay = $this->app_liche_orders_model->count(['o_id'=>$oid,'status'=>1]); if($order && $s_id==$order['s_id'] && $v_id==$order['v_id']){ $row = $this->auto_business_model->get(['id'=>$business_id]); - }else{ - throw new Exception('当前地区不支持销售该车型', API_CODE_FAIL); + //}else{ + // throw new Exception('当前地区不支持销售该车型', API_CODE_FAIL); } //修改商务政策id if($s_id==$order['s_id'] && $v_id!=$row['v_id']){ @@ -71,6 +71,9 @@ class Business extends Wxapp{ } } } + if(!$row){ + throw new Exception('当前地区不支持销售该车型', API_CODE_FAIL); + } $car['price_car'] = $row['price_car']; $car['price_floor'] = $row['price_floor']; $dis_money = $car['price_car'] - $car['price_floor'];