服务器报错修改

back_recharge
lvxinran 2019-07-03 12:14:03 +08:00
parent d6079d0964
commit 78d14781c8
2 changed files with 1 additions and 9 deletions

View File

@ -825,6 +825,7 @@ public class MapLogic {
mapManager.setTowerUnusedBuffer(null);
};
LOGGER.info("退出地图");
mapManager.setEssenceValue(0);
boolean result = onlyLevelMap(user, true);
if (!result) {
MessageUtil.sendErrorResponse(session, 0, messageType.getNumber(), "");
@ -832,13 +833,6 @@ public class MapLogic {
}
}
int time = (int)(mapManager.getCurrTowerTime())/1000;
// mapManager.setCurrTowerTime(TimeUtils.now());
// if(mapManager.getTower()==1){
// time = 0;
// mapManager.setCurrTowerTime(TimeUtils.now());
//
// }
builder.setUseTime(time);
LOGGER.info("当前层使用时间{}",time);
if(mapManager.getTower()>mapManager.getHighestTower()){

View File

@ -124,8 +124,6 @@ public class ProtocolsManager implements ProtocolsAbstract {
}
final ISession session = (ISession) gameSession;
PacketNetData packetNetData = new PacketNetData((byte[]) obj);
int msgId = packetNetData.getMsgId();
LOGGER.info("uid={},msgId={},index={}",packetNetData.getUserId(),msgId,packetNetData.getIndex());
// MessageTypeProto.MessageType messageType = MessageTypeProto.MessageType.valueOf(msgId);
// FileWriter fw = null;
// if (!gameMessageForLogin.containsKey(messageType)){