|
@@ -19,15 +19,7 @@ func (l *InfoService) Myinfo(sid string) map[string]string {
|
|
|
info_i := redis.Get("session", sid)
|
|
|
if info_i != nil {
|
|
|
info_m, _ := info_i.(map[string]interface{})
|
|
|
- entRole := common.Int64All(info_m["entRole"])
|
|
|
entNicheDis := common.Int64All(info_m["entNicheDis"])
|
|
|
- if entRole == 1 {
|
|
|
- // 企业管理员
|
|
|
- entNicheDis = 1
|
|
|
- } else if entRole == 2 {
|
|
|
- //部门管理员
|
|
|
- entNicheDis = 2
|
|
|
- }
|
|
|
infoMap = map[string]string{
|
|
|
"nickName": RsaEncrypt([]byte(gconv.String(info_m["s_nickname"]))),
|
|
|
"entRole": RsaEncrypt([]byte(gconv.String(common.Int64All(info_m["entRole"])))),
|