diff --git a/live/src/main/java/com/yunbao/live/socket/SocketRyChatUtil.java b/live/src/main/java/com/yunbao/live/socket/SocketRyChatUtil.java
index 7cd18ff92..65627f5c5 100644
--- a/live/src/main/java/com/yunbao/live/socket/SocketRyChatUtil.java
+++ b/live/src/main/java/com/yunbao/live/socket/SocketRyChatUtil.java
@@ -132,7 +132,11 @@ public class SocketRyChatUtil {
@Override
public void onError(Message message, RongIMClient.ErrorCode errorCode) {
Log.e("tx", "aaa" + errorCode.toString());
- ToastUtil.show(errorCode.code + ":" + errorCode.msg);
+ if (errorCode.code == 23408) {
+ ToastUtil.show(R.string.live_ban_tip);
+ } else {
+ ToastUtil.show(errorCode.code + ":" + errorCode.msg);
+ }
}
});
@@ -411,7 +415,7 @@ public class SocketRyChatUtil {
ct = CommonAppContext.sInstance.getBaseContext().getString(R.string.live_shut_2);
break;
case 2:
- ct = String.format(CommonAppContext.sInstance.getBaseContext().getString(R.string.live_shut_3),time+"");
+ ct = String.format(CommonAppContext.sInstance.getBaseContext().getString(R.string.live_shut_3), time + "");
break;
}
diff --git a/live/src/main/res/values-en/strings.xml b/live/src/main/res/values-en/strings.xml
index 9bbb745b8..f4b3db2d3 100644
--- a/live/src/main/res/values-en/strings.xml
+++ b/live/src/main/res/values-en/strings.xml
@@ -92,4 +92,5 @@
Please turn on at least one contact information
Minute
Please select
+ You have been banned
\ No newline at end of file
diff --git a/live/src/main/res/values/strings.xml b/live/src/main/res/values/strings.xml
index 9496804d2..9e1539431 100644
--- a/live/src/main/res/values/strings.xml
+++ b/live/src/main/res/values/strings.xml
@@ -90,4 +90,5 @@
信件欄
分鐘
請選擇禁言時間
+ 您已被禁言