From 2e30723576054d6f89a300ffd305721b1704950f Mon Sep 17 00:00:00 2001 From: toom1996 Date: Mon, 7 Jul 2025 10:01:13 +0800 Subject: [PATCH] update --- src/middleware/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/middleware/index.ts b/src/middleware/index.ts index 514fedc..361a63e 100644 --- a/src/middleware/index.ts +++ b/src/middleware/index.ts @@ -8,10 +8,10 @@ export async function onRequest (context: any, next: any) { // 可选地修改 `locals` 中的属性 const host = await getHost(context.request); - console.log(host) - if (host == 'www.zhishihuisheng.com' || host == 'zhishihuisheng.com') { - return next(); - } + // console.log(host) + // if (host == 'www.zhishihuisheng.com' || host == 'zhishihuisheng.com') { + // return next(); + // } // 防止无线跳转 if (context.locals.is_write) {