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();