This commit is contained in:
toom1996
2025-06-24 19:12:16 +08:00
parent a7cc06cefc
commit 2be1ccf1d5

View File

@ -7,6 +7,7 @@ export async function onRequest (context: any, next: any) {
// 可选地修改 `locals` 中的属性 // 可选地修改 `locals` 中的属性
const host = await getHost(context.request); const host = await getHost(context.request);
console.log(host)
if (host == 'www.zhishihuisheng.com' || host == 'zhishihuisheng.com') { if (host == 'www.zhishihuisheng.com' || host == 'zhishihuisheng.com') {
return next(); return next();
} }