wangyuan 2019-06-02 17:35:19 +08:00
parent dfa25dc50e
commit e7a38b5243
1 changed files with 7 additions and 4 deletions

View File

@ -52,12 +52,15 @@ public class HandlerLogicThread extends Thread{
LOGGER.info("request uid=>{} , msgId=>{}, not find the baseHandler",userId,msgId);
return;
}
boolean b = checkFunctionIsOpen(msgId, session);
if(!b){
MessageUtil.sendErrorResponse(session,0,msgId+1,"funciton not");
return;
if(msgId != MessageTypeProto.MessageType.LOGIN_REQUEST_VALUE){
boolean b = checkFunctionIsOpen(msgId, session);
if(!b){
MessageUtil.sendErrorResponse(session,0,msgId+1,"funciton not");
return;
}
}
LOGGER.info("doWork->uid={},mType={};start", userId, MessageTypeProto.MessageType.valueOf(msgId));
MissionEventDistributor.requestStart();
baseHandler.execute(session, packetNetData);