首充活动bug修改,部分代码修改注释
parent
36401ce309
commit
333faebe9c
|
@ -31,6 +31,6 @@ public class SevenWorldFunction implements FunctionManager {
|
||||||
String key = RedisUtil.getInstence().getKey(crossRedisKey, "",false);
|
String key = RedisUtil.getInstence().getKey(crossRedisKey, "",false);
|
||||||
RedisUtil.getInstence().del(key);
|
RedisUtil.getInstence().del(key);
|
||||||
SevenWorldLogic.setEnd(false);
|
SevenWorldLogic.setEnd(false);
|
||||||
LOGGER.info("七界试炼活动开始,清理排行榜...{}",key);
|
LOGGER.info("七界试炼活动开始,清理排行榜...{}:{}",key,SevenWorldLogic.isEnd());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,9 +36,7 @@ public class SweepBattleRequestHandler extends BaseHandler<FightInfoProto.SweepD
|
||||||
if(sFloodConfig == null){
|
if(sFloodConfig == null){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
List<Integer> dropList = Lists.newArrayList();
|
|
||||||
boolean isOnekey= proto.getOnkeySweep();
|
boolean isOnekey= proto.getOnkeySweep();
|
||||||
boolean isSuccess = false;
|
|
||||||
CommonProto.Drop.Builder drop = null;
|
CommonProto.Drop.Builder drop = null;
|
||||||
//判断是否挑战过
|
//判断是否挑战过
|
||||||
if(user.getMapManager().getLastMonsterAttack()<id){
|
if(user.getMapManager().getLastMonsterAttack()<id){
|
||||||
|
@ -60,7 +58,7 @@ public class SweepBattleRequestHandler extends BaseHandler<FightInfoProto.SweepD
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//扫荡一次
|
//扫荡一次
|
||||||
isSuccess = PlayerLogic.getInstance().checkAndUpdate(user,privilageType,1);
|
boolean isSuccess = PlayerLogic.getInstance().checkAndUpdate(user,privilageType,1);
|
||||||
if(isSuccess){
|
if(isSuccess){
|
||||||
drop = ItemUtil.drop(user, sFloodConfig.getReward(), BIReason.MONSTERATTACK_REWARD);
|
drop = ItemUtil.drop(user, sFloodConfig.getReward(), BIReason.MONSTERATTACK_REWARD);
|
||||||
user.getUserMissionManager().onGameEvent(user, GameEvent.MONSTER_ATTACK_PLAY,1);
|
user.getUserMissionManager().onGameEvent(user, GameEvent.MONSTER_ATTACK_PLAY,1);
|
||||||
|
|
|
@ -75,6 +75,7 @@ public class RechargeFirstActivity extends AbstractActivity {
|
||||||
ActivityProgressInfo progressInfo = new ActivityProgressInfo();
|
ActivityProgressInfo progressInfo = new ActivityProgressInfo();
|
||||||
progressInfo.setProgrss(TimeUtils.nowInt());
|
progressInfo.setProgrss(TimeUtils.nowInt());
|
||||||
progressInfo.setState(0);
|
progressInfo.setState(0);
|
||||||
|
missionMap.put(reward.getId(),progressInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -254,6 +254,9 @@ class SheJiActivity extends AbstractActivity {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 社稷大典发奖
|
||||||
|
*/
|
||||||
protected void sendGuildReward() {
|
protected void sendGuildReward() {
|
||||||
|
|
||||||
SGodSacrificeSetting sGodSacrificeSetting = STableManager.getConfig(SGodSacrificeSetting.class).get(1);
|
SGodSacrificeSetting sGodSacrificeSetting = STableManager.getConfig(SGodSacrificeSetting.class).get(1);
|
||||||
|
|
Loading…
Reference in New Issue