From 9591431d017fe2291b9d57a80622396442f28032 Mon Sep 17 00:00:00 2001 From: cool Date: Wed, 25 Oct 2023 15:42:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BF=BD=E7=95=A5=E6=9D=83?= =?UTF-8?q?=E9=99=90=E6=95=B0=E7=BB=84=E6=95=B0=E6=8D=AE=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/user/middleware/app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/user/middleware/app.ts b/src/modules/user/middleware/app.ts index 8713242..c559621 100644 --- a/src/modules/user/middleware/app.ts +++ b/src/modules/user/middleware/app.ts @@ -23,7 +23,7 @@ export class UserMiddleware implements IMiddleware { resolve() { return async (ctx: Context, next: NextFunction) => { - this.ignoreUrls = this.ignoreUrls.concat( + const ignoreUrls = this.ignoreUrls.concat( this.coolUrlTagData.byKey(TagTypes.IGNORE_TOKEN) ); let { url } = ctx; @@ -41,7 +41,7 @@ export class UserMiddleware implements IMiddleware { return; } } catch (error) {} - if (this.ignoreUrls.includes(url)) { + if (ignoreUrls.includes(url)) { await next(); return; } else {