business add type=3 dis_money about

This commit is contained in:
qianhy
2023-03-10 11:56:24 +08:00
parent e14c8d984c
commit 34286f37d9
+3 -1
View File
@@ -31,7 +31,7 @@ class Business extends Wxapp{
$color_id = $this->input_param('color_id');
$main_type = $this->input_param('main_type');
$oid = $this->input_param('oid');
$biz = $this->biz_model->get(['id'=>$biz_id],'id,city_id');
$biz = $this->biz_model->get(['id'=>$biz_id],'id,city_id,type');
$city_id = $biz['city_id'];
$where = [
's_id'=>$s_id,
@@ -89,6 +89,8 @@ class Business extends Wxapp{
$car['price_car'] = $row['price_car'];
$car['price_floor'] = $row['price_floor'];
$dis_money = $car['price_car'] - $car['price_floor'];
$biz['type'] == 3 && $dis_money = $dis_money - $row['proxy_profix_car'];
$dis_money = $dis_money - $car['proxy_profix_car'];
if($biz['id']==160){
$dis_money = 200000;
}