青龙秘宝修改
parent
bcf288b69f
commit
330e7c105a
|
@ -194,7 +194,7 @@ public abstract class AbstractActivity implements IActivity, IEventHandler {
|
|||
List<Integer> misssIds = new LinkedList<>();
|
||||
List<SActivityRewardConfig> cfgs = SActivityRewardConfig.getsActivityRewardConfigByActivityId(id);
|
||||
if (null == cfgs) {
|
||||
LOGGER.error("奖励配置不存在");
|
||||
LOGGER.error("奖励配置不存在{}",id);
|
||||
return;
|
||||
//throw new ErrorCodeException(ErrorCode.CFG_NULL);
|
||||
}
|
||||
|
|
|
@ -145,7 +145,7 @@ public class ActivityLogic implements IEventHandler{
|
|||
int[] ifOpen = sGlobalActivity.getIfOpen();
|
||||
if(ifOpen!=null && ifOpen.length>0){
|
||||
if(ifOpen[0]==2){ //开服
|
||||
if(GameApplication.serverConfig.getCacheOpenTime() + ifOpen[1]*TimeUtils.ONE_DAY - startTime >0){
|
||||
if(GameApplication.serverConfig.getCacheOpenTime() + ifOpen[1]*TimeUtils.ONE_DAY >TimeUtils.now()){
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
@ -348,6 +348,8 @@ public class ActivityLogic implements IEventHandler{
|
|||
if(userCreateTime + ifOpen[1]*TimeUtils.ONE_DAY - now >0){
|
||||
continue;
|
||||
}
|
||||
}else{
|
||||
continue;
|
||||
}
|
||||
}else{
|
||||
continue;
|
||||
|
|
|
@ -60,6 +60,7 @@ public class TreasureActivity extends AbstractActivity {
|
|||
//戒灵秘宝改为青龙秘宝,只有周任务和月任务 2020.8.14
|
||||
//user.getUserMissionManager().onGameEvent(user, GameEvent.TREASH_REFRESH, sGlobalActivity.getId());
|
||||
ActivityMission activityMission = new ActivityMission();
|
||||
activityMission.setActivityState(1);
|
||||
List<Integer> levels = new ArrayList<>(STreasureSunlongConfig.levelTreasureConfigMap.get(id).keySet());
|
||||
if(levels.contains(0)){
|
||||
levels.remove(0);
|
||||
|
|
Loading…
Reference in New Issue