|
@@ -155,7 +155,7 @@ func (this *CommonRouter) BigpcPage(htmlPage string) error {
|
|
return this.doPcBigPage(htmlPage)
|
|
return this.doPcBigPage(htmlPage)
|
|
}
|
|
}
|
|
|
|
|
|
-var bigVipFreePageReg = regexp.MustCompile(`set_*|free_*|ent_portrait`)
|
|
|
|
|
|
+var bigVipFreePageReg = regexp.MustCompile(`set_*|free_*`)
|
|
|
|
|
|
func (this *CommonRouter) doPcBigPage(pageSign string) error {
|
|
func (this *CommonRouter) doPcBigPage(pageSign string) error {
|
|
userid, _ := this.GetSession("userId").(string)
|
|
userid, _ := this.GetSession("userId").(string)
|
|
@@ -164,17 +164,19 @@ func (this *CommonRouter) doPcBigPage(pageSign string) error {
|
|
return this.Redirect("/notin/page")
|
|
return this.Redirect("/notin/page")
|
|
}
|
|
}
|
|
//没有购买大会员跳转大会员介绍页
|
|
//没有购买大会员跳转大会员介绍页
|
|
- if array := strings.Split(pageSign, "/"); len(array) > 0 {
|
|
|
|
- pageSign = array[0]
|
|
|
|
- }
|
|
|
|
- if !bigVipFreePageReg.MatchString(pageSign) {
|
|
|
|
- bigBaseMsg := jy.GetBigVipUserBaseMsg(userid, public.Mysql, public.MQFW)
|
|
|
|
- if bigBaseMsg.Status <= 0 && !bigBaseMsg.Viper {
|
|
|
|
- return this.Redirect("/big/page/index")
|
|
|
|
|
|
+ if !strings.HasPrefix(pageSign, "svip/ent_ser_portrait") {
|
|
|
|
+ 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) {
|
|
|
|
+ bigBaseMsg := jy.GetBigVipUserBaseMsg(userid, public.Mysql, public.MQFW)
|
|
|
|
+ if bigBaseMsg.Status <= 0 && !bigBaseMsg.Viper {
|
|
|
|
+ return this.Redirect("/big/page/index")
|
|
|
|
+ }
|
|
|
|
+ //大会员页面权限判断
|
|
|
|
+ if !bigBaseMsg.CheckBigVipFrontPower(pageSign) {
|
|
|
|
+ return this.Redirect("/big/page/index")
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return this.Render(fmt.Sprintf("/frontRouter/pc/page_big_pc/sess/index.html"))
|
|
return this.Render(fmt.Sprintf("/frontRouter/pc/page_big_pc/sess/index.html"))
|