作者 yangfu

切换组织修改

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