From 9c5261a168a42fde944dd9012b3d230ca83d1cff Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Sun, 3 Sep 2023 00:24:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/task/TaskLogic.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/common/logic/task/TaskLogic.php b/app/common/logic/task/TaskLogic.php index eeeadbfb7..47ed0a39b 100644 --- a/app/common/logic/task/TaskLogic.php +++ b/app/common/logic/task/TaskLogic.php @@ -77,11 +77,7 @@ class TaskLogic extends BaseLogic if($v['types']==3){ $task=Task::where('template_id',$v['id'])->find(); if($task){ - // $create_time=strtotime($task['create_time']); - // $create_time = date('Y-m-d H:i:s', strtotime('+1 day', $create_time)); - $start_time = date('Y-m-d H:i:s', strtotime('+1 day', $task['start_time'])); - $end_time = date('Y-m-d H:i:s', strtotime('+1 day', $task['end_time'])); - Task::where('template_id',$v['id'])->update(['start_time'=>$start_time,'end_time'=>$end_time]); + Task::where('template_id',$v['id'])->update(['start_time'=>$task['start_time']+86400,'end_time'=>$task['end_time']+86400]); TaskTemplate::where('id', $v['id'])->inc('day_count')->update(); return true; }