更新版本

This commit is contained in:
yaooo 2023-09-13 19:07:35 +08:00
parent fba8e28ca9
commit 36f3e5fc78

View File

@ -1341,11 +1341,11 @@ class Auth extends BaseController
foreach($brandArray as $b) { foreach($brandArray as $b) {
$pos = stripos($phoneBrand, $b); $pos = stripos($phoneBrand, $b);
if ($pos !== false) { 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')); return app('json')->success(compact('appInfo'));