敏感字修改
parent
269d7e07e2
commit
f2a0fffe24
|
@ -159,6 +159,14 @@ public class ChatLogic {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(!result){
|
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.ChatInfo chatInfo = CBean2Proto.getChatInfoBuilder(user,tmp,nowTime,-1);
|
||||||
ChatProto.SendChatInfoResponse response = ChatProto.SendChatInfoResponse.newBuilder().setChatInfo(chatInfo).build();
|
ChatProto.SendChatInfoResponse response = ChatProto.SendChatInfoResponse.newBuilder().setChatInfo(chatInfo).build();
|
||||||
MessageUtil.sendMessage(iSession,1,msgId,response,true);
|
MessageUtil.sendMessage(iSession,1,msgId,response,true);
|
||||||
|
|
Loading…
Reference in New Issue