This commit is contained in:
2026-01-17 01:13:55 +08:00
parent 327f115ef2
commit cc043bfd7e
17 changed files with 768 additions and 790 deletions

View File

@@ -34,7 +34,7 @@ export const getTokenUserCache = async (token: string) => {
}
return res;
}
const checkAuth = async (ctx: any, isAdmin = false) => {
export const checkAuth = async (ctx: any, isAdmin = false) => {
const config = assistantConfig.getConfig();
const { auth = {} } = config;
const token = ctx.query.token;