fix fight key

back_recharge
wangyuan 2019-06-20 11:37:12 +08:00
parent 5b1e55b61e
commit 0983abb99c
3 changed files with 4 additions and 3 deletions

View File

@ -99,6 +99,7 @@ public class EventType {
public static final int thirtySix = 36;
public static final int thirtyEight = 38;
public static final int thirtyNine = 39;
public static final int updatePonintEvent = 1;
public static final int fightEvent = 2;

View File

@ -1619,7 +1619,7 @@ public class MapLogic {
return;
}
String key = RedisKey.getKey(RedisKey.LEVE_DIFFICULTY_FIGHT, Integer.toString(user.getId()) , false);
String key = RedisKey.getKey(RedisKey.SUDDLENLY_FIGHT, Integer.toString(user.getId()) , false);
Map<Object , Object> valueMap = RedisUtil.getInstence().hmget(key);
RedisUtil.getInstence().del(key);
if (valueMap == null || valueMap.isEmpty()) {
@ -1705,7 +1705,7 @@ public class MapLogic {
//扣除预先道具
ItemUtil.itemCost(user,sLevelDifficultyConfig.getPreLevelCost(),BIReason.START_DIFFICULT,fightId);
FightInfoProto.FightStartResponse.Builder fightStartResponse = FightInfoProto.FightStartResponse.newBuilder();
BehaviorUtil.getLevelDifficultyifficuFightInfo(user,sLevelDifficultyConfig.getMonsterGroup(),teamId,sLevelDifficultyConfig.getRankTime(),fightStartResponse,RedisKey.LEVE_DIFFICULTY_INFO);
BehaviorUtil.getLevelDifficultyifficuFightInfo(user,sLevelDifficultyConfig.getMonsterGroup(),teamId,sLevelDifficultyConfig.getRankTime(),fightStartResponse,RedisKey.LEVE_DIFFICULTY_FIGHT);
MessageUtil.sendMessage(session, 1, messageType.getNumber(), fightStartResponse.build(), true);
}

View File

@ -41,7 +41,7 @@ public class WorkShopController extends MongoBase {
}
public void updateTechLevel(int propession,int techId,int level){
if(this.technologyMap.containsKey(propession)){
if(!this.technologyMap.containsKey(propession)){
this.technologyMap.put(propession,new HashMap<>());
}
this.technologyMap.get(propession).put(techId,level);