-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IM-sdk的API获取的用户信息无法判断是否已注销 #727
Comments
使用server api获取用户信息,如果用户已经删除,那么应该会返回不存在的错误码,只有存在才会返回。这个修改是2022.11.9添加上去的。请确认你们的IM服务版本是这个时间之前还是之后的 |
/api/version如下,是在这个版本用UserAdmin.destroyUser后再UserAdmin.getUserByUserId ,还是能获取到 { |
我这边测试都是正常的,先创建一个用户,等几秒再销毁,再等几秒,再调用获取用户的接口,能够返回用户不存在的错误码。有可能是线上这个用户数据太大,代码是先删除数据再删除用户信息(标记删除),异步删除用户数据耗时太长,多等一段时间看看好没有好。或者在你们测试环境验证一下 |
目前使用的SDK版本1.3.2,UserAdmin.getUserByUserId 这个API获取到的用户对象无法判断是否已经注销。
并且,UserAdmin.destroyUser这个API 能够对已经注销的用户重复执行。
The text was updated successfully, but these errors were encountered: