From adbb943b51b23f22789c432e29fef3e3cedcc4e0 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 25 Sep 2023 20:28:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20app/controller/api/Auth.ph?= =?UTF-8?q?p?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 --- app/controller/api/Auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index 5a82bb09..5bef6a8d 100644 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -1536,7 +1536,7 @@ class Auth extends BaseController $queryBuilder = $queryBuilder->where('phone_brand', ''); } } - $appInfo = ($queryBuilder->order('version', 'desc')->fetchSql(false)->find()) ?? (object)[]; + $appInfo = $queryBuilder->order('version', 'desc')->fetchSql(false)->find(); if (empty($appInfo)) { $appInfo = (Db::name('AppUpdate')->where('type', $type)->where('version', '>', $version)->find()) ?? (object)[]; }