|
@@ -139,6 +139,7 @@ func (s *Short) Article(stype, id string) error {
|
|
|
}
|
|
|
|
|
|
func (s *Short) LoginCommon(sess map[string]interface{}, stype, id string, bm bool) error {
|
|
|
+ log.Println(stype, "----stype:---", id)
|
|
|
//电脑端 剑鱼快照页面访问
|
|
|
if stype == "content" && !bm {
|
|
|
//工作桌面内嵌 快照页
|
|
@@ -221,7 +222,8 @@ func (s *Short) LoginCommon(sess map[string]interface{}, stype, id string, bm bo
|
|
|
} else if stype == "entservice" { //大客户数据快照展示
|
|
|
//se := util.SimpleEncrypt{"entservice"}
|
|
|
sid := encrypt.SE3.DecodeString(id)
|
|
|
- if userId == "" || len(sid) == 0 || (len(sid) > 0 && sid == "") { //未登录用户没有权限访问
|
|
|
+ log.Println("----sid:---", sid)
|
|
|
+ if len(sid) == 0 || (len(sid) > 0 && sid == "") { //未登录用户没有权限访问---userId == "" || 未登录可以访问来自陈 11.29
|
|
|
s.Redirect("/notin/page", 302)
|
|
|
return nil
|
|
|
}
|