敏感字修改

back_recharge
lvxinran 2021-03-09 15:48:48 +08:00
parent 269d7e07e2
commit f2a0fffe24
1 changed files with 8 additions and 0 deletions

View File

@ -159,6 +159,14 @@ public class ChatLogic {
break;
}
if(!result){
char[] chars = message.toCharArray();
char[] mes = new char[chars.length];
mes[0] = chars[0];
mes[1] = chars[1];
for(int i=2;i<chars.length;i++){
mes[i]='*';
}
tmp = new String(mes);
ChatProto.ChatInfo chatInfo = CBean2Proto.getChatInfoBuilder(user,tmp,nowTime,-1);
ChatProto.SendChatInfoResponse response = ChatProto.SendChatInfoResponse.newBuilder().setChatInfo(chatInfo).build();
MessageUtil.sendMessage(iSession,1,msgId,response,true);