提交 d686b4bc authored 作者: 窦馨雨's avatar 窦馨雨

合并分支 'qa' 到 'master'

修改随机任务时间 查看合并请求 !80
...@@ -164,7 +164,7 @@ public class TemporaryActivityTaskClockServiceImpl extends ServiceImpl<Temporary ...@@ -164,7 +164,7 @@ public class TemporaryActivityTaskClockServiceImpl extends ServiceImpl<Temporary
// 检查当前时间是否在打卡要求的时间内 // 检查当前时间是否在打卡要求的时间内
Date requiredLockTime = taskClockDO.getRequiredlockTime(); Date requiredLockTime = taskClockDO.getRequiredlockTime();
// 计算15分钟以后得时间 // 计算15分钟以后得时间
Date latestRequiredLockTime = DateUtil.offsetMinute(requiredLockTime, 15).toJdkDate(); Date latestRequiredLockTime = DateUtil.offsetMinute(requiredLockTime, 30).toJdkDate();
if (new Date().compareTo(requiredLockTime) < 0 || new Date().compareTo(latestRequiredLockTime) > 0) { if (new Date().compareTo(requiredLockTime) < 0 || new Date().compareTo(latestRequiredLockTime) > 0) {
throw new IllegalArgumentException("当前时间不在打卡要求的时间内"); throw new IllegalArgumentException("当前时间不在打卡要求的时间内");
} }
......
...@@ -65,7 +65,7 @@ public class ActivityStautsHandler { ...@@ -65,7 +65,7 @@ public class ActivityStautsHandler {
} }
@XxlJob("sendSubscribeMessage") @XxlJob("sendSubscribeMessage")
public void sendSubscribeMessage() { public void sendSubscribeMessage() {
DateTime undoDateTime = DateUtil.offsetMinute(new Date(), -15); DateTime undoDateTime = DateUtil.offsetMinute(new Date(), -30);
/** /**
* 处理未开始的随机任务状态更新 * 处理未开始的随机任务状态更新
* <p> * <p>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论