wangkaiyue 4 years ago
parent
commit
1cbe339b85
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/jfw/front/frontRouter.go

+ 8 - 2
src/jfw/front/frontRouter.go

@@ -6,6 +6,7 @@ import (
 	"jfw/config"
 	"jfw/public"
 	"qfw/util/jy"
+	"regexp"
 	"strings"
 )
 
@@ -145,6 +146,9 @@ func (this *CommonRouter) BigpcIndex() error {
 func (this *CommonRouter) BigpcPage(htmlPage string) error {
 	return this.doPcBigPage(htmlPage)
 }
+
+var bigVipFreePageReg = regexp.MustCompile(`set_*|free_*`)
+
 func (this *CommonRouter) doPcBigPage(pageSign string) error {
 	userid, _ := this.GetSession("userId").(string)
 	//没有登录跳转登录页面
@@ -161,8 +165,10 @@ func (this *CommonRouter) doPcBigPage(pageSign string) error {
 		if array := strings.Split(pageSign, "/"); len(array) > 0 {
 			pageSign = array[0]
 		}
-		if !bigBaseMsg.CheckBigVipFrontPower(pageSign) {
-			return this.Redirect("/big/page/index")
+		if !bigVipFreePageReg.MatchString(pageSign) {
+			if !bigBaseMsg.CheckBigVipFrontPower(pageSign) {
+				return this.Redirect("/big/page/index")
+			}
 		}
 	}
 	return this.Render(fmt.Sprintf("/frontRouter/pc/page_big_pc/sess/index.html"))