From 92fce6af3f1ebffbadb98c840a14f6c6f8ccfb3f Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Mon, 29 Dec 2025 23:20:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=98=E6=83=A0=E5=88=B8?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E8=8E=B7=E5=8F=96=E5=93=81=E7=89=8C=E5=92=8C?= =?UTF-8?q?=E8=BD=A6=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agent/admin/controllers/auto/Ucenter.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/agent/admin/controllers/auto/Ucenter.php b/agent/admin/controllers/auto/Ucenter.php index 9bef0ddd..c2d77cc7 100644 --- a/agent/admin/controllers/auto/Ucenter.php +++ b/agent/admin/controllers/auto/Ucenter.php @@ -201,17 +201,18 @@ class Ucenter extends BaseController { $id = $this->get('id'); $userCoupon = $this->auto_user_coupon_model->get(['id' => $id, 'userId' => $this->userId]); + $product = $this->auto_product_model->get(['id'=>$userCoupon['productId']]); $where = ['cf_uid' => $this->userId, 'app_id' => Receiver_clues_model::APP_ID_ACTIVITY, 'out_id' => $userCoupon['productId']]; $cluesRow = $this->clues_model->get($where); $cityRow = $this->area_model->get(['city_id' => $cluesRow['city_id']]); - $brand = $this->auto_brand_model->get(['id' => $cluesRow['brand_id']], 'name'); - $series = $this->auto_series_model->get(['id' => $cluesRow['series_id']], 'name'); + $brand = $this->auto_brand_model->get(['id' => $product['brand_id']], 'name'); + $series = $this->auto_series_model->get(['id' => $product['series_id']], 'name'); $data = [ 'mobile' => mobile_asterisk($userCoupon['mobile']), 'city' => $cityRow['province_name'] . '/' . $cityRow['city_name'], 'cityId' => $cluesRow['city_id'] ?: '', - 'brandId' => $cluesRow['brand_id'] ?: '', - 'seriesId' => $cluesRow['series_id'] ?: '', + 'brandId' => $product['brandId'] ?: '', + 'seriesId' => $product['seriesId'] ?: '', 'model' => "{$brand['name']} {$series['name']}" ]; $this->return_response($data);