From 36f3e5fc78f5a5a1c50482154f6b062eeadee63e Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Wed, 13 Sep 2023 19:07:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index 4934233e..9a3198a2 100644 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -1341,11 +1341,11 @@ class Auth extends BaseController foreach($brandArray as $b) { $pos = stripos($phoneBrand, $b); if ($pos !== false) { - $queryBuilder = $queryBuilder->where('phone_brand', $phoneBrand); + $queryBuilder = $queryBuilder->where('phone_brand', $b); } } } - $appInfo = ($queryBuilder->order('id', 'desc')->find()) ?? (object)[]; + $appInfo = ($queryBuilder->order('id', 'desc')->fetchSql(false)->find()) ?? (object)[]; } return app('json')->success(compact('appInfo'));