多队塔改为30分钟结算一次
parent
9e94598d63
commit
c50ee67411
|
@ -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);
|
||||
//更新数据库时间
|
||||
|
|
Loading…
Reference in New Issue