update
This commit is contained in:
@ -8,10 +8,10 @@ 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)
|
// console.log(host)
|
||||||
if (host == 'www.zhishihuisheng.com' || host == 'zhishihuisheng.com') {
|
// if (host == 'www.zhishihuisheng.com' || host == 'zhishihuisheng.com') {
|
||||||
return next();
|
// return next();
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 防止无线跳转
|
// 防止无线跳转
|
||||||
if (context.locals.is_write) {
|
if (context.locals.is_write) {
|
||||||
|
Reference in New Issue
Block a user