修改查询
This commit is contained in:
parent
47a17f8f37
commit
a8ffc7adfa
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user