更新 app/controller/api/Auth.php
修复
This commit is contained in:
parent
04f82c4c71
commit
adbb943b51
@ -1536,7 +1536,7 @@ class Auth extends BaseController
|
|||||||
$queryBuilder = $queryBuilder->where('phone_brand', '');
|
$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)) {
|
if (empty($appInfo)) {
|
||||||
$appInfo = (Db::name('AppUpdate')->where('type', $type)->where('version', '>', $version)->find()) ?? (object)[];
|
$appInfo = (Db::name('AppUpdate')->where('type', $type)->where('version', '>', $version)->find()) ?? (object)[];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user