新周卡功能,bug修改-天数问题+1
parent
1ec28cdf76
commit
bd48f7bc3d
|
|
@ -92,11 +92,10 @@ public class WeekCardActivity extends AbstractActivity {
|
|||
Map<Integer, SWeekcardConfig> config = STableManager.getConfig(SWeekcardConfig.class);
|
||||
|
||||
SWeekcardConfig sWeekcardConfig = config.get(cardId);
|
||||
ArrayList<CommonProto.WeekCardDay> list1 = new ArrayList<>();
|
||||
|
||||
// 计算间隔时间
|
||||
long startTimeLong = WeekCardLogic.getInstance().getStartTime(user, activityId);
|
||||
int days = TimeUtils.differentDays(startTimeLong, TimeUtils.now());
|
||||
int days = TimeUtils.differentDays(startTimeLong, TimeUtils.now()) + 1;
|
||||
|
||||
for (int[] ints : sWeekcardConfig.getBaseRewardID()) {
|
||||
// 天数
|
||||
|
|
@ -128,7 +127,7 @@ public class WeekCardActivity extends AbstractActivity {
|
|||
Map<Integer, SWeekcardConfig> configMap = STableManager.getConfig(SWeekcardConfig.class);
|
||||
// 计算间隔时间
|
||||
long startTimeLong = WeekCardLogic.getInstance().getStartTime(user,id);
|
||||
int days = TimeUtils.differentDays(startTimeLong, TimeUtils.now());
|
||||
int days = TimeUtils.differentDays(startTimeLong, TimeUtils.now())+1;
|
||||
for (Map.Entry<Integer, Map<Integer, Integer>> entry : weekCard.entrySet()) {
|
||||
|
||||
Integer weekCardId = entry.getKey();
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ public class WeekCardLogic {
|
|||
|
||||
// 计算间隔时间
|
||||
long startTimeLong = getStartTime(user, activityId);
|
||||
int days = TimeUtils.differentDays(startTimeLong, TimeUtils.now());
|
||||
int days = TimeUtils.differentDays(startTimeLong, TimeUtils.now())+1;
|
||||
|
||||
for (int[] ints : sWeekcardConfig.getBaseRewardID()) {
|
||||
int day = ints[0];
|
||||
|
|
|
|||
Loading…
Reference in New Issue