四灵试炼次数问题
parent
695de90a50
commit
2ceaa10726
|
@ -1266,7 +1266,7 @@ public class TimeUtils {
|
|||
c.setTimeInMillis(time1);
|
||||
c.add(Calendar.DATE, 1);
|
||||
// 转换格式
|
||||
Date date1 = new Date(time1);
|
||||
Date date1 = c.getTime();
|
||||
Date date2 = new Date(time2);
|
||||
String format1 = sdf.format(date1);
|
||||
String format2 = sdf.format(date2);
|
||||
|
|
|
@ -387,7 +387,9 @@ public class FourChallengeLogic {
|
|||
int campOpenDay = STableManager.getConfig(SCampTowerSetting.class).get(1).getTimesAddPerDay();
|
||||
for (int i = 0; i < status.length; i++) {
|
||||
// 类型未开启
|
||||
if (status[i] == 0){ continue; }
|
||||
if (status[i] == 0){
|
||||
continue;
|
||||
}
|
||||
user.getPlayerInfoManager().addFourChallengeRemainTimes(i, campOpenDay);
|
||||
}
|
||||
LOGGER.info("四灵试炼层数刷新,首次开启,玩家:{},层数:{}", user.getId(), Arrays.toString(user.getPlayerInfoManager().getFourChallengeRemainTimes()));
|
||||
|
@ -417,10 +419,6 @@ public class FourChallengeLogic {
|
|||
int campOpenDay = towerSetting.getTimesAddPerDay();
|
||||
|
||||
for (int i = 0; i < status.length; i++) {
|
||||
// 类型未开启
|
||||
if (status[i] == 0){
|
||||
continue;
|
||||
}
|
||||
// 记录天数
|
||||
int count = 0;
|
||||
// 开启的星期数,第一位是开启阵营,要调过,从1开始
|
||||
|
|
Loading…
Reference in New Issue