From 1c06ebbacff3ddae1c934669a9a7f5fb7ea7a621 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Wed, 20 Sep 2023 11:31:26 +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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index d0fb12d2..833e5fee 100644 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -1339,14 +1339,15 @@ class Auth extends BaseController $queryBuilder = $queryBuilder->where('version', '>', $version); } if ($phoneBrand) { - $pos = false; + $spos = false; foreach($brandArray as $b) { $pos = stripos($phoneBrand, $b); if ($pos !== false) { + $spos = true; $queryBuilder = $queryBuilder->where('phone_brand', $b); } } - if ($pos === false) { + if ($spos === false) { $queryBuilder = $queryBuilder->where('phone_brand', ''); } }