...
|
...
|
@@ -1727,11 +1727,9 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
}
|
|
|
|
|
|
private int getTimeIntInterval(Integer startTime, int now, int interval){
|
|
|
int intervalCount = 1;
|
|
|
|
|
|
if( startTime == null || startTime == 0){
|
|
|
startTime = now;
|
|
|
intervalCount = 0;
|
|
|
}
|
|
|
//活动的开始时间
|
|
|
startTime = DateUtil.getSomeDayBeforeInt(0, startTime);
|
...
|
...
|
@@ -1739,12 +1737,11 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
|
|
|
//取当前所属奖励周期的开始时间
|
|
|
while(now > timeInterval){
|
|
|
timeInterval = DateUtil.getSomeDayBeforeInt(interval * intervalCount, startTime);
|
|
|
timeInterval = DateUtil.getSomeDayBeforeInt(interval, startTime);
|
|
|
if(now < timeInterval){
|
|
|
return startTime;
|
|
|
}
|
|
|
startTime = timeInterval;
|
|
|
intervalCount++;
|
|
|
}
|
|
|
return timeInterval;
|
|
|
}
|
...
|
...
|
|