|
@@ -8,6 +8,7 @@ import (
|
|
|
"jy/src/jfw/wx"
|
|
|
"net/url"
|
|
|
"regexp"
|
|
|
+ "strings"
|
|
|
|
|
|
"app.yhyue.com/moapp/jypkg/common/src/qfw/util/jy"
|
|
|
|
|
@@ -211,11 +212,12 @@ var bigVipFreePageReg = regexp.MustCompile(`set_.*|free|unit_portrayal|analysis_
|
|
|
// 工作桌面需求 不需要判断用户权限
|
|
|
func (this *CommonRouter) doPcBigPage(pageSign, types string) error {
|
|
|
//page := pageSign
|
|
|
- //userid, _ := this.GetSession("userId").(string)
|
|
|
+ userid, _ := this.GetSession("userId").(string)
|
|
|
//没有登录跳转登录页面(采购单位画像除外)
|
|
|
- //if !strings.Contains(pageSign, "unit_portrayal") && userid == "" {
|
|
|
- // return this.Redirect("/notin/page")
|
|
|
- //}
|
|
|
+ if !strings.Contains(pageSign, "unit_portrayal") &&
|
|
|
+ !strings.Contains(pageSign, "ent_portrait") && userid == "" {
|
|
|
+ return this.Redirect("/notin/page")
|
|
|
+ }
|
|
|
return this.Render(fmt.Sprintf("/frontRouter/pc/page_big_pc/sess/index.html"))
|
|
|
}
|
|
|
|