修改查询

This commit is contained in:
liu 2024-03-18 10:25:10 +08:00
parent 47a17f8f37
commit a8ffc7adfa

View File

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