From bbf8ba77f81cfeae45adac9bb94c531acbf4add0 Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Sun, 17 Jul 2022 20:15:42 +0800 Subject: [PATCH] edit-api-business --- api/controllers/wxapp/app/Business.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/controllers/wxapp/app/Business.php b/api/controllers/wxapp/app/Business.php index e5157099..e646aa74 100644 --- a/api/controllers/wxapp/app/Business.php +++ b/api/controllers/wxapp/app/Business.php @@ -47,8 +47,8 @@ class Business extends Wxapp{ $info_json = json_decode($order['info_json'],true); $business_id = $info_json['business_id']; //存在已支付订单 - $if_pay = $this->app_liche_orders_model->count(['o_id'=>$oid,'status'=>1]); - if($if_pay && $order && $s_id==$order['s_id'] && $v_id==$order['v_id']){ + //$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);