多队塔改为30分钟结算一次

master_longzhu_new
DESKTOP-C3M45P4\dengdan 2025-08-15 14:30:40 +08:00
parent 9e94598d63
commit c50ee67411
1 changed files with 3 additions and 3 deletions

View File

@ -182,11 +182,11 @@ public class DuoduiTowerLogic {
int[][] income = towers.get(0).getIncome();
int count;
if (operate == 1){//普通领取
if (nowInt < time +60){
LOGGER.error("多队获取奖励失败,时间不足1分钟,类型:{},当前层数:{}time{}uid{}", type, tier, time, user.getId());
if (nowInt < time +60 *30){
LOGGER.error("多队获取奖励失败,时间不足30分钟,类型:{},当前层数:{}time{}uid{}", type, tier, time, user.getId());
throw new ErrorTableException(162);//时间不足1分钟
}
int num = (nowInt - time) / 60;
int num = (nowInt - time) / 60 * 30;
int value = SSpecialConfig.getIntegerValue(SSpecialConfig.Duoduita_accumulation_time);
count = Math.min(num,value);
//更新数据库时间