关卡日志修改

back_recharge
lvxinran 2020-09-21 18:21:45 +08:00
parent c90d741866
commit e347397922
1 changed files with 2 additions and 0 deletions

View File

@ -2114,6 +2114,7 @@ public class MapLogic {
user.getTeamPosManager().setCurTeamPosId(teamId);
String fightInfo = fightId + "#" + teamId;
String key = RedisKey.getKey(RedisKey.LEVE_DIFFICULTY_INFO, String.valueOf(uid), false);
LOGGER.info("关卡战斗start{}{}",uid,fightInfo);
RedisUtil.getInstence().set(key, fightInfo, -1);
//扣除预先道具
FightInfoProto.FightStartResponse.Builder fightStartResponse = FightInfoProto.FightStartResponse.newBuilder();
@ -2137,6 +2138,7 @@ public class MapLogic {
LOGGER.info("endFight() uid=>{} fightId=>{},checkFightId={}", uid, fightId, checkFightId);
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
}
LOGGER.info("关卡战斗end{}{}",uid,fightInfos);
SMainLevelConfig sMainLevelConfig = SMainLevelConfig.config.get(fightId);
FightEvent fightEvent = new FightEvent(uid, -1, sMainLevelConfig.getRankTime(),frames, GameFightType.StoryFight);
FightResult fightResult = FightDispatcher.dispatcher(fightEvent);