更新 app/controller/api/Auth.php
日志更新
This commit is contained in:
parent
a150cb9118
commit
b265f91987
@ -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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user