|
@@ -303,12 +303,12 @@ public class CoreServiceImpl implements CoreService {
|
|
|
if (StringUtils.isNotEmpty(planAccount.getPublishPushTime())) {
|
|
|
LocalTime currentTime = TimeZoneUtil.currentTime(TimeZoneUtil.Timezone.china);
|
|
|
LocalTime pushTime = LocalTime.parse(planAccount.getPublishPushTime());
|
|
|
- if (currentTime.isBefore(pushTime.minusMinutes(120))) {
|
|
|
+ if (currentTime.isBefore(pushTime.minusMinutes(30))) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (currentTime.isAfter(pushTime.plusMinutes(360))) {
|
|
|
return false;
|
|
|
}
|
|
|
-// if (currentTime.isAfter(pushTime.plusMinutes(780))) {
|
|
|
-// return false;
|
|
|
-// }
|
|
|
} else if (StringUtils.isNotEmpty(planAccount.getPublishWindowStart())
|
|
|
&& StringUtils.isNotEmpty(planAccount.getPublishWindowEnd())) {
|
|
|
if (!effectiveTime(planAccount.getPublishWindowStart(), planAccount.getPublishWindowEnd(),
|