mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
feat: webui OB11Config
This commit is contained in:
parent
caab998212
commit
c5d313574f
7
src/webui/src/api/OB11Config.ts
Normal file
7
src/webui/src/api/OB11Config.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { RequestHandler } from "express";
|
||||
import { DataRuntime } from "../helper/Data";
|
||||
const isEmpty = (data: any) => data === undefined || data === null || data === '';
|
||||
export const OB11GetConfigHandler: RequestHandler = async (req, res) => {
|
||||
}
|
||||
export const OB11SetConfigHandler: RequestHandler = async (req, res) => {
|
||||
}
|
@ -35,7 +35,19 @@ export const QQCheckLoginStatusHandler: RequestHandler = (req, res) => {
|
||||
}
|
||||
});
|
||||
};
|
||||
export const QQQuickLoginHandler: RequestHandler = async (req, res) => {
|
||||
export const QQSetQuickLoginHandler: RequestHandler = async (req, res) => {
|
||||
// 未完成
|
||||
const { token } = req.body;
|
||||
if (token) {
|
||||
const isLogin = await DataRuntime.getQQLoginStatus();
|
||||
}
|
||||
// 未实现
|
||||
res.send({
|
||||
code: 0,
|
||||
message: 'success'
|
||||
});
|
||||
}
|
||||
export const QQGetQuickLoginListHandler: RequestHandler = async (req, res) => {
|
||||
// 未完成
|
||||
const { token } = req.body;
|
||||
if (token) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user