|
@@ -201,6 +201,7 @@ func (this *CommonRouter) BigpcPage(htmlPage string) error {
|
|
|
|
|
|
var bigVipFreePageReg = regexp.MustCompile(`set_.*|free|unit_portrayal|analysis_(search|result)|pro_follow_detail|client_portrayal`)
|
|
|
|
|
|
+//工作桌面需求 不需要判断用户权限
|
|
|
func (this *CommonRouter) doPcBigPage(pageSign, types string) error {
|
|
|
page := pageSign
|
|
|
userid, _ := this.GetSession("userId").(string)
|
|
@@ -210,23 +211,23 @@ func (this *CommonRouter) doPcBigPage(pageSign, types string) error {
|
|
|
}
|
|
|
//没有购买大会员跳转大会员介绍页(PC端订阅列表 所有用户都能进去)
|
|
|
if !strings.HasPrefix(pageSign, "svip/ent_ser_portrait") && pageSign != "big_subscribe" {
|
|
|
- for _, v := range strings.Split(pageSign, "/") {
|
|
|
- if v == "" || v == "desktop" {
|
|
|
- continue
|
|
|
- }
|
|
|
- pageSign = v
|
|
|
- break
|
|
|
- }
|
|
|
+ // for _, v := range strings.Split(pageSign, "/") {
|
|
|
+ // if v == "" || v == "desktop" {
|
|
|
+ // continue
|
|
|
+ // }
|
|
|
+ // pageSign = v
|
|
|
+ // break
|
|
|
+ // }
|
|
|
bigBaseMsg := jy.GetBigVipUserBaseMsg(userid, public.Mysql, public.MQFW)
|
|
|
- if !bigVipFreePageReg.MatchString(pageSign) && pageSign != "index" {
|
|
|
- if bigBaseMsg.Status <= 0 && bigBaseMsg.Vip_BuySet.Upgrade != 1 {
|
|
|
- return this.Redirect("/big/page/index")
|
|
|
- }
|
|
|
- //大会员页面权限判断
|
|
|
- if pageSign != "" && !bigBaseMsg.CheckBigVipFrontPower(pageSign) {
|
|
|
- return this.Redirect("/big/page/index")
|
|
|
- }
|
|
|
- }
|
|
|
+ // if !bigVipFreePageReg.MatchString(pageSign) && pageSign != "index" {
|
|
|
+ // if bigBaseMsg.Status <= 0 && bigBaseMsg.Vip_BuySet.Upgrade != 1 {
|
|
|
+ // return this.Redirect("/big/page/index")
|
|
|
+ // }
|
|
|
+ // //大会员页面权限判断
|
|
|
+ // if pageSign != "" && !bigBaseMsg.CheckBigVipFrontPower(pageSign) {
|
|
|
+ // return this.Redirect("/big/page/index")
|
|
|
+ // }
|
|
|
+ // }
|
|
|
//限制超级订阅用户不能进入购买页
|
|
|
if page == "free/svip/buy" && bigBaseMsg.VipStatus > 0 && types != "upgrade" {
|
|
|
return this.Redirect("/front/subscribe.html")
|