周卡月卡调整,兼容老版本月卡,四版

duhui 2022-06-17 11:08:07 +08:00
parent 92a63c75e3
commit 5f6e0ff20a
1 changed files with 2 additions and 1 deletions

View File

@ -1001,8 +1001,9 @@ public class PlayerManager extends MongoBase {
iterator.remove();
continue;
}
int beginOfDay = (int)(TimeUtils.getBeginOfDay(map.getValue() * 1000))/1000;
// 结束时间
int lastTime = map.getValue() + 24*60*60*config.getContiueDays();
int lastTime = beginOfDay + 24*60*60*config.getContiueDays();
if(nowInt>=lastTime){
iterator.remove();
}