设置管理员和拉黑云信返回重复操作错误码提示修改
This commit is contained in:
@@ -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, "");
|
||||
}
|
||||
|
Reference in New Issue
Block a user