From a8ffc7adfa9953aca52a1b0bace8370dbe621154 Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Mon, 18 Mar 2024 10:25:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=A5=E8=AF=A2?= 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 ceb9850a..e4a96d31 100755 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -1589,7 +1589,7 @@ class Auth extends BaseController $agent = strtolower($this->request->server('HTTP_USER_AGENT')); // 检查是否为iOS设备,包括iPhone和iPad if (strpos($agent, 'iphone') !== false || strpos($agent, 'ipad') !== false) { - $appInfo=[]; + $appInfo = Db::name('AppUpdate')->where('type', $type)->order('id','desc')->find(); } elseif (strpos($agent, 'android') !== false) { // 检查是否为Android设备 $appInfo = Db::name('AppUpdate')->where('type', $type)->order('id','desc')->find();