暂时修改特权到期时间

back_recharge
lvxinran 2020-12-31 14:52:21 +08:00
parent b69ffd6329
commit 9b4b01bedd
1 changed files with 6 additions and 1 deletions

View File

@ -399,7 +399,12 @@ public class PlayerManager extends MongoBase {
}else {
maxTime = TimeUtils.now()/1000+config.getContinueTime()[0];
}
maxTime = (int)(TimeUtils.getLastOrUnderHour(maxTime*1000,0,0,true)/1000);
//todo 记得删掉
if(privilageId==4013){
maxTime = (int)(TimeUtils.getLastOrUnderHour(maxTime*1000,5,0,true)/1000);
}else{
maxTime = (int)(TimeUtils.getLastOrUnderHour(maxTime*1000,0,0,true)/1000);
}
newVipInfo.setEffectTime((int)maxTime);
}
this.vipInfo.put(privilageId,newVipInfo);