fix: 周表达式无效

This commit is contained in:
fit2cloud-chenyw 2022-01-04 17:50:33 +08:00
parent c959aa074f
commit 314b9fae66

View File

@ -79,7 +79,8 @@ public abstract class TaskHandler implements InitializingBean {
private String getDayOfWeek(Calendar instance) {
int index = instance.get(Calendar.DAY_OF_WEEK);
return week[index];
index = (index + 1) % 7;
return String.valueOf(index);
}