作者 yangfu

切换组织修改

@@ -298,7 +298,7 @@ func (svr AuthService) OrgSwitch(switchOrgCommand *command.SwitchOrgCommand) (in @@ -298,7 +298,7 @@ func (svr AuthService) OrgSwitch(switchOrgCommand *command.SwitchOrgCommand) (in
298 userId = int64(vInt) 298 userId = int64(vInt)
299 } 299 }
300 } 300 }
301 - user, err := svr.getUserInfo(domain.Operator{UserId: userId}) 301 + user, err := svr.getUserInfo(domain.Operator{UserId: userId, OrgId: loginToken.OrgId})
302 if err != nil { 302 if err != nil {
303 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) 303 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
304 } 304 }