mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
fix: GetQuickList
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user