update
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user