更新 app/controller/api/Auth.php

修复
This commit is contained in:
mkm 2023-09-25 20:28:18 +08:00
parent 04f82c4c71
commit adbb943b51

@ -1536,7 +1536,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)[];
}