|
@@ -1,6 +1,7 @@
|
|
|
package service
|
|
|
|
|
|
import (
|
|
|
+ "app.yhyue.com/moapp/jybase/common"
|
|
|
"app.yhyue.com/moapp/jybase/redis"
|
|
|
MC "bp.jydev.jianyu360.cn/BaseService/biCenter/api/common"
|
|
|
"encoding/base64"
|
|
@@ -17,10 +18,19 @@ func (l *InfoService) Myinfo(sid string) map[string]interface{} {
|
|
|
|
|
|
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]interface{}{
|
|
|
"nickName": RsaEncrypt([]byte(gconv.String(info_m["s_nickname"]))),
|
|
|
"entRole": RsaEncrypt([]byte(gconv.String(info_m["entRole"]))),
|
|
|
- "entNicheDis": RsaEncrypt([]byte(gconv.String(info_m["entNicheDis"]))),
|
|
|
+ "entNicheDis": RsaEncrypt([]byte(gconv.String(entNicheDis))),
|
|
|
"positionId": RsaEncrypt([]byte(gconv.String(info_m["positionId"]))),
|
|
|
"accountId": RsaEncrypt([]byte(gconv.String(info_m["accountId"]))),
|
|
|
"entAccountId": RsaEncrypt([]byte(gconv.String(info_m["entAccountId"]))),
|