//跨服聊天提交

back_recharge
mengchengzhen 2021-07-28 16:57:46 +08:00
parent 0f49dae227
commit 8eb605135d
1 changed files with 6 additions and 6 deletions

View File

@ -64,7 +64,7 @@ public class ChatLogic {
case 0: // 系统
chatInfoList = MessageCache.sysMsg.getObjs(messageId);
break;
case -1: //世界
case 1: //世界
chatInfoList = MessageCache.worldMsg.getObjs(messageId);
break;
case 2://公会
@ -95,7 +95,7 @@ public class ChatLogic {
}
break;
case 1:
case 4:
int group = GlobleSystemLogic.getInstence().getCrossGroup();
if(group==-1){
throw new ErrorCodeException(ErrorCode.CHAT_NOT_CROSS);
@ -162,7 +162,7 @@ public class ChatLogic {
}
boolean result = true;
switch (chatType){
case -1:
case 1:
//0|content需要解字符串
String s = message;
String[] strs = message.split("|",3);
@ -177,7 +177,7 @@ public class ChatLogic {
case 3:
result = ShieldedWordUtils.checkName(user,message,false,ChatContentType.PRIVATE_CHAT,UserManager.getUser(friendId));
break;
case 1:
case 4:
result = ShieldedWordUtils.checkName(user,message,false,ChatContentType.CROSS_CHAT);
break;
default:
@ -200,7 +200,7 @@ public class ChatLogic {
}
switch (chatType){
case -1: //世界
case 1: //世界
long messageId = RedisUtil.getInstence().increment(GameApplication.serverId + RedisKey.CHAT_WORD_MSG_ID + GameApplication.serverId);
ChatProto.ChatInfo chatInfo = CBean2Proto.getChatInfoBuilder(user,message,nowTime,messageId);
@ -243,7 +243,7 @@ public class ChatLogic {
break;
case 1: //跨服
case 4: //跨服
int group = GlobleSystemLogic.getInstence().getCrossGroup();
if(group==-1){
throw new ErrorCodeException(ErrorCode.CHAT_NOT_CROSS);