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