删除无用代码
parent
d1841984b7
commit
eb425bc259
|
@ -1,6 +1,5 @@
|
|||
package com.ljsd.jieling.handler.hero;
|
||||
|
||||
import com.googlecode.protobuf.format.JsonFormat;
|
||||
import com.ljsd.jieling.exception.ErrorCode;
|
||||
import com.ljsd.jieling.exception.ErrorCodeException;
|
||||
import com.ljsd.jieling.handler.BaseHandler;
|
||||
|
@ -54,12 +53,10 @@ public class XiuxianLevelUpRequestHandler extends BaseHandler<HeroInfoProto.Sixi
|
|||
if (xiuweiLevel >= curMaxLevel) {
|
||||
throw new ErrorCodeException("已修行至当前战力最大等级");
|
||||
}
|
||||
// heroManager.setXiuweiLevel(curMaxLevel);
|
||||
heroManager.setXiuweiLevel(curMaxLevel);
|
||||
HeroInfoProto.XiuxianLevelUpResponse xiuxianLevelUpResponse = HeroInfoProto.XiuxianLevelUpResponse.newBuilder()
|
||||
.setXiuxianLevel(heroManager.getXiuweiLevel())
|
||||
.build();
|
||||
LOGGER.info("================> {}", JsonFormat.printToString(xiuxianLevelUpResponse));
|
||||
MessageUtil.sendMessage(session, 1, MessageTypeProto.MessageType.XIUXIAN_XIUWEI_UP_RESPONSE_VALUE, xiuxianLevelUpResponse, true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue