diff --git a/app/common/logic/task/TaskLogic.php b/app/common/logic/task/TaskLogic.php index 0f7d93376..c9e10c474 100644 --- a/app/common/logic/task/TaskLogic.php +++ b/app/common/logic/task/TaskLogic.php @@ -75,13 +75,12 @@ class TaskLogic extends BaseLogic { try { if ($v['types'] == 3) { - return true; - // $task = Task::where('template_id', $v['id'])->find(); - // if ($task) { - // Task::where('template_id', $v['id'])->update(['start_time' => strtotime($task['start_time']) + 86400, 'end_time' => strtotime($task['end_time']) + 86400]); - // TaskTemplate::where('id', $v['id'])->inc('day_count')->update(); - // return true; - // } + $task = Task::where('template_id', $v['id'])->find(); + if ($task) { + // Task::where('template_id', $v['id'])->update(['start_time' => strtotime($task['start_time']) + 86400, 'end_time' => strtotime($task['end_time']) + 86400]); + // TaskTemplate::where('id', $v['id'])->inc('day_count')->update(); + return true; + } } $time = strtotime(date('Y-m-d')); $TaskSchedulingPlan_data = [