后台:修改白名单
This commit is contained in:
@@ -3,6 +3,7 @@ import { UserModel } from '@db/User';
|
||||
|
||||
module.exports = () => {
|
||||
return async function tokenParser(ctx, next) {
|
||||
|
||||
if (!ctx.request.body || !ctx.request.body.token) {
|
||||
console.error('token not found');
|
||||
ctx.body = ctx.service.utils.resResult(STATUS.WRONG_PARMS);
|
||||
|
||||
Reference in New Issue
Block a user