设置管理员和拉黑云信返回重复操作错误码提示修改

This commit is contained in:
huangjian
2022-04-21 15:12:32 +08:00
parent 04821e412a
commit 09df3d8717

View File

@@ -2102,7 +2102,11 @@ public final class IMNetEaseManager {
@Override
public void onFailed(int i) {
SingleToastUtil.showToast(BasicConfig.INSTANCE.getAppContext(), "操作失败,请重试");
if (i == 417) {
SingleToastUtil.showToast("重复操作~");
} else {
SingleToastUtil.showToast(BasicConfig.INSTANCE.getAppContext(), "操作失败,请重试");
}
if (callBack != null) {
callBack.onFail(i, "");
}
@@ -2139,7 +2143,11 @@ public final class IMNetEaseManager {
@Override
public void onFailed(int i) {
SingleToastUtil.showToast(BasicConfig.INSTANCE.getAppContext(), "操作失败,请重试");
if (i == 417) {
SingleToastUtil.showToast(mark ? "对方已经是管理员了" : "移除管理员成功");
} else {
SingleToastUtil.showToast("操作失败,请重试");
}
if (callBack != null) {
callBack.onFail(i, "");
}