fix: GetQuickList

This commit is contained in:
手瓜一十雪
2024-05-08 14:46:51 +08:00
parent 05051cf0cd
commit dd70e20bda
4 changed files with 7 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ const app = express();
* @returns {Promise<void>} 无返回值。
*/
export async function InitWebUi() {
let config = WebUiConfig;
let config = await WebUiConfig.GetWebUIConfig();
app.use(express.json());
// 初始服务
app.all('/', (_req, res) => {

View File

@@ -27,12 +27,12 @@ export const QQGetQRcodeHandler: RequestHandler = async (req, res) => {
});
return;
};
export const QQCheckLoginStatusHandler: RequestHandler = (req, res) => {
export const QQCheckLoginStatusHandler: RequestHandler = async (req, res) => {
res.send({
code: 0,
message: 'success',
data: {
isLogin: DataRuntime.getQQLoginStatus()
isLogin: await DataRuntime.getQQLoginStatus()
}
});
};