diff --git a/app/service/biz/user/internal/core/user.getMutableUsers_handler.go b/app/service/biz/user/internal/core/user.getMutableUsers_handler.go index 05adc9979..bb68e5900 100644 --- a/app/service/biz/user/internal/core/user.getMutableUsers_handler.go +++ b/app/service/biz/user/internal/core/user.getMutableUsers_handler.go @@ -58,7 +58,11 @@ func (c *UserCore) UserGetMutableUsers(in *user.TLUserGetMutableUsers) (*user.Ve if ok, _ := container2.Contains(id[idx], in.To); ok { mutableUsers[idx], _ = c.svcCtx.Dao.GetImmutableUser(c.ctx, id[idx], true, in.Id...) } else { - mutableUsers[idx], _ = c.svcCtx.Dao.GetImmutableUser(c.ctx, id[idx], true, in.Id...) + if len(in.To) == 0 { + mutableUsers[idx], _ = c.svcCtx.Dao.GetImmutableUser(c.ctx, id[idx], true, in.Id...) + } else { + mutableUsers[idx], _ = c.svcCtx.Dao.GetImmutableUser(c.ctx, id[idx], true, in.To...) + } } })