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)