From 36b32cbf314df2db95b9b6944a81eb2df61794d5 Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Thu, 7 Sep 2023 19:01:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=BB=E5=8A=A1=E5=A4=A9?= =?UTF-8?q?=E6=95=B0=E8=AE=B0=E5=BD=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/task/TaskLogic.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/common/logic/task/TaskLogic.php b/app/common/logic/task/TaskLogic.php index eaa9ab81c..acbb1771b 100644 --- a/app/common/logic/task/TaskLogic.php +++ b/app/common/logic/task/TaskLogic.php @@ -74,8 +74,7 @@ class TaskLogic extends BaseLogic public static function CronAdd(array $v, $datas): bool { try { - TaskTemplate::where('id', $v['id'])->inc('information_day_count', 5)->update(); - return true; + $v['day_count']=$v['day_count']+1; if ($v['types'] == 3) { return true; // $task = Task::where('template_id', $v['id'])->find();