From abbb8c524c25408fef1a95d76828730a71a62762 Mon Sep 17 00:00:00 2001
From: zlzw <583819556@qq.com>
Date: Sun, 25 Jun 2023 16:19:55 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=A2=AB=E7=A6=81=E8=A8=80?=
=?UTF-8?q?=E7=9A=84=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../java/com/yunbao/live/socket/SocketRyChatUtil.java | 8 ++++++--
live/src/main/res/values-en/strings.xml | 1 +
live/src/main/res/values/strings.xml | 1 +
3 files changed, 8 insertions(+), 2 deletions(-)
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 @@
信件欄
分鐘
請選擇禁言時間
+ 您已被禁言