From 3694444e7ab77e8a35bd6c05dca8df2151dde159 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Wed, 20 Sep 2023 11:30:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC=E5=8F=91?= =?UTF-8?q?=E5=B8=83?= 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', ''); } }