WH01243 hace 1 año
padre
commit
939bb36d81
Se han modificado 1 ficheros con 0 adiciones y 8 borrados
  1. 0 8
      api/internal/service/infoService.go

+ 0 - 8
api/internal/service/infoService.go

@@ -19,15 +19,7 @@ func (l *InfoService) Myinfo(sid string) map[string]interface{} {
 	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]interface{}{
 			"nickName":     RsaEncrypt([]byte(gconv.String(info_m["s_nickname"]))),
 			"entRole":      RsaEncrypt([]byte(gconv.String(common.Int64All(info_m["entRole"])))),