From 37605f46b7527fefe3de4aaaa1fef7ab5fa5031d Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Wed, 6 Sep 2023 15:27:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AA=BF=E6=95=B4=E4=B8=AD=E8=8B=B1=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/live/socket/SocketRyClient.java | 7 +++++++ .../java/com/yunbao/live/views/LivePushRyViewHolder.java | 5 +---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/socket/SocketRyClient.java b/live/src/main/java/com/yunbao/live/socket/SocketRyClient.java index f6156ebee..063d23e0d 100644 --- a/live/src/main/java/com/yunbao/live/socket/SocketRyClient.java +++ b/live/src/main/java/com/yunbao/live/socket/SocketRyClient.java @@ -249,6 +249,13 @@ public class SocketRyClient { if (map.getString("ct").contains("堅決維護青少年群體精神文明健康") || map.getString("ct").contains("click to register if you like. pdlive conducts")) { systemChatMessage(map.getString("ct")); } else { + if (!WordUtil.isNewZh() && map.getString("ct").contains("退出比賽") && map.getString("ct").contains("獲得勝利")) { + String ctTmp = map.getString("ct"); + ctTmp = ctTmp.replace("由於", "Due to") + .replace("退出比賽", "withdrawing from the competition") + .replace("獲得勝利", "won"); + map.put("ct", ctTmp); + } systemChatMessage2(map.getString("ct")); } diff --git a/live/src/main/java/com/yunbao/live/views/LivePushRyViewHolder.java b/live/src/main/java/com/yunbao/live/views/LivePushRyViewHolder.java index 9a0de895b..daa33924a 100644 --- a/live/src/main/java/com/yunbao/live/views/LivePushRyViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LivePushRyViewHolder.java @@ -988,10 +988,7 @@ public class LivePushRyViewHolder extends AbsRyLivePushViewHolder implements ITX if (!isPk) { return; } - String ct = "由於" + uname + "退出比賽," + pkname + "獲得勝利"; - if(!WordUtil.isNewZh()){ - ct= "because" + uname + "To leave a race," + pkname + "win"; - } + String ct = "由於 " + uname + " 退出比賽," + pkname + " 獲得勝利"; SocketSendBean seed_msg = new SocketSendBean() .param("_method_", Constants.SOCKET_SYSTEM)