|
@@ -28,10 +28,10 @@ public class XxlJobService {
|
|
|
Long now = System.currentTimeMillis();
|
|
|
int nowHour = DateUtils.getHourByTimestamp(now / 1000);
|
|
|
int nowMinute = DateUtils.getMinuteByTimestamp(now / 1000);
|
|
|
- if (!StringUtils.hasText(publishPlan.getPublishWindowStart())) {
|
|
|
+ if (!StringUtils.hasText(publishPlan.getPublishPushTime())) {
|
|
|
continue;
|
|
|
}
|
|
|
- LocalTime time = LocalTime.parse(publishPlan.getPublishWindowStart());
|
|
|
+ LocalTime time = LocalTime.parse(publishPlan.getPublishPushTime());
|
|
|
int planHour = time.getHour();
|
|
|
int planMinute = time.getMinute();
|
|
|
if (nowHour - planHour == 1 && nowMinute > planMinute) {
|
|
@@ -48,7 +48,7 @@ public class XxlJobService {
|
|
|
"发布计划超1H未发送完成\n"
|
|
|
+ "发布计划ID: " + publishPlan.getPlanId() + "\n"
|
|
|
+ "发布计划名称: " + publishPlan.getPlanName() + "\n"
|
|
|
- + "发布时间: " + publishPlan.getPublishWindowStart() + "\n"
|
|
|
+ + "发布时间: " + publishPlan.getPublishPushTime() + "\n"
|
|
|
+ "<at user_id=\"all\">所有人</at> ");
|
|
|
}
|
|
|
|