edit-api-business2
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user