This commit is contained in:
toom1996
2025-07-07 10:01:13 +08:00
parent 626fbc077d
commit 2e30723576

View File

@ -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) {