更新 app/controller/api/Auth.php
修复
This commit is contained in:
parent
b265f91987
commit
0e4220b2ef
@ -1413,7 +1413,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)[];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user