parent
416da4f2ad
commit
86025ab785
|
@ -109,10 +109,10 @@ public class EquipManager extends MongoBase {
|
||||||
|
|
||||||
public Baubles getBaubles(String equipId) {
|
public Baubles getBaubles(String equipId) {
|
||||||
PropertyItem item = equipMap.get(equipId);
|
PropertyItem item = equipMap.get(equipId);
|
||||||
if (item == null){
|
if (item instanceof Baubles){
|
||||||
return null;
|
return (Baubles) item;
|
||||||
}
|
}
|
||||||
return (Baubles) item;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void loadFaxiang(String key,String heroId) {
|
public void loadFaxiang(String key,String heroId) {
|
||||||
|
|
|
@ -301,7 +301,12 @@ public class SessionManager implements INetSession<ISession>, INetReceived<ISess
|
||||||
byte[] message = iSession.getCacheMessage(index);
|
byte[] message = iSession.getCacheMessage(index);
|
||||||
if (message == null) {
|
if (message == null) {
|
||||||
//TODO error
|
//TODO error
|
||||||
LOGGER.error("the uid={},the msg={} is processing,the index={},the sessionIndex={}", iSession.getUid(), MessageTypeProto.MessageType.valueOf(packetNetData.getMsgId()), index, iSession.getIndex());
|
try {
|
||||||
|
LOGGER.error("the uid={},the msg={} is processing,the index={},the sessionIndex={}", iSession.getUid(), MessageTypeProto.MessageType.valueOf(packetNetData.getMsgId()), index, iSession.getIndex());
|
||||||
|
MessageUtil.sendErrorResponse(iSession, -1, iSession.getLastMsgId(),"sessionIndex error");
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
LOGGER.error("the uid={},the msg={} reback", iSession.getUid(), MessageTypeProto.MessageType.valueOf(packetNetData.getMsgId()));
|
LOGGER.error("the uid={},the msg={} reback", iSession.getUid(), MessageTypeProto.MessageType.valueOf(packetNetData.getMsgId()));
|
||||||
|
|
Loading…
Reference in New Issue