更新 app/controller/api/Auth.php

日志更新
This commit is contained in:
mkm 2023-09-25 20:20:46 +08:00
parent a150cb9118
commit b265f91987

View File

@ -1414,6 +1414,9 @@ class Auth extends BaseController
}
}
$appInfo = ($queryBuilder->order('version', 'desc')->fetchSql(false)->find()) ?? (object)[];
if (empty($appInfo)) {
$appInfo = (Db::name('AppUpdate')->where('type', $type)->where('version', '>', $version)->find()) ?? (object)[];
}
}
return app('json')->success(compact('appInfo'));