|
@@ -5,7 +5,9 @@ import (
|
|
|
"github.com/go-xweb/xweb"
|
|
|
"jfw/config"
|
|
|
"jfw/public"
|
|
|
+ "log"
|
|
|
"qfw/util/jy"
|
|
|
+ "strings"
|
|
|
)
|
|
|
|
|
|
//前端通用路由
|
|
@@ -138,12 +140,12 @@ func (this *CommonRouter) doEntpcPage() error {
|
|
|
|
|
|
//大会员
|
|
|
func (this *CommonRouter) BigpcIndex() error {
|
|
|
- return this.doPcBigPage()
|
|
|
+ return this.doPcBigPage("")
|
|
|
}
|
|
|
func (this *CommonRouter) BigpcPage(htmlPage string) error {
|
|
|
- return this.doPcBigPage()
|
|
|
+ return this.doPcBigPage(htmlPage)
|
|
|
}
|
|
|
-func (this *CommonRouter) doPcBigPage() error {
|
|
|
+func (this *CommonRouter) doPcBigPage(pageSign string) error {
|
|
|
userid, _ := this.GetSession("userId").(string)
|
|
|
//没有登录跳转登录页面
|
|
|
if userid == "" {
|
|
@@ -154,6 +156,16 @@ func (this *CommonRouter) doPcBigPage() error {
|
|
|
if bigBaseMsg.Status <= 0 {
|
|
|
return this.Redirect("/big/page/index")
|
|
|
}
|
|
|
+ //大会员页面权限判断
|
|
|
+ if pageSign != "" {
|
|
|
+ if array := strings.Split(pageSign, "/"); len(array) > 0 {
|
|
|
+ pageSign = array[0]
|
|
|
+ }
|
|
|
+ log.Println("pageSign", pageSign)
|
|
|
+ if !bigBaseMsg.CheckBigVipFrontPower(pageSign) {
|
|
|
+ return this.Redirect("/big/page/index")
|
|
|
+ }
|
|
|
+ }
|
|
|
return this.Render(fmt.Sprintf("/frontRouter/pc/page_big_pc/sess/index.html"))
|
|
|
}
|
|
|
|