Commit e35cd611 authored by gengshaojing's avatar gengshaojing

add: 外网域名模块限制

parent 60b25156
......@@ -5,13 +5,14 @@ let cachePage = null;
exports.index = (ctx, next) => {
console.log("----- home");
console.log(ctx.path)
// console.log(ctx.request.path)
// console.log(ctx.path)
const hostname = ctx.hostname;
const pathArr = ctx.path.substring(1).split("/");
console.log(hostname);
console.log(pathArr);
// console.log(hostname);
// console.log(pathArr);
if (hostname === "opservice.yidianzixun.com" || hostname === "www.opservice.yidianzixun.com") {
if (pathArr[1] !== "activity" && pathArr[1] !== "groupmeal") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment