This commit is contained in:
xy
2026-03-13 01:38:40 +00:00
parent e6e4f88257
commit 28855885cd
311 changed files with 89544 additions and 94350 deletions

View File

@@ -1,8 +1,9 @@
import { STATUS } from '@consts';
import { UserModel } from '@db/User';
import { Context } from 'egg';
module.exports = () => {
return async function tokenParser(ctx, next) {
return async function tokenParser(ctx: Context, next: () => Promise<any>) {
if (!ctx.request.body || !ctx.request.body.token) {
console.error('token not found');