活动修改&新手结束

back_recharge
wangyuan 2020-01-16 11:00:57 +08:00
parent 0d5dd5811f
commit 40d339793c
2 changed files with 5 additions and 2 deletions

View File

@ -120,8 +120,8 @@ public class ActivityLogic implements IEventHandler{
if (time == ActivityType.OPEN_TYPE_ROLE) {
continue;
}
long startTime = sGlobalActivity.getStartTimeLong();
long endTime =sGlobalActivity.getEndTimeLong();
long startTime = ToolsUtil.getTimeLong(sGlobalActivity.getStartTimeLong(),sGlobalActivity.getEndTimeLong(),sGlobalActivity.getTime(),0, 1);
long endTime = ToolsUtil.getTimeLong(sGlobalActivity.getStartTimeLong(),sGlobalActivity.getEndTimeLong(),sGlobalActivity.getTime(),0, 2);
if (now < startTime) {
continue;
}

View File

@ -36,6 +36,9 @@ public class FightMainEventHandler implements IEventHandler{
int uid = fightMainEvent.getUid();
User user = UserManager.getUser(uid);
if(fightId == 1151){
user.getPlayerInfoManager().updateGuidePoint(1,-1);
}
//检测更新vip是否有新开
user.getPlayerInfoManager().updateVipInfo(GlobalsDef.MAIN_LEVEL_UNLOCK_PRIVILEGE,10_000_000 * (fightId % 10) + fightId);
for(SGlobalActivity sGlobalActivity : SGlobalActivity.getsGlobalActivityMap().values()){