From e3edb8c9380cd51c450dc5ea1283fe1f77faef52 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Wed, 27 May 2026 17:47:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E6=9D=9F=E6=A8=A1=E5=BC=8F=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=9B=9E=E9=BB=98=E8=AE=A4=E6=A8=A1=E5=BC=8F3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/AutomaticallyStartActivity.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/AutomaticallyStartActivity.php b/app/Console/Commands/AutomaticallyStartActivity.php index c2daa08..0b13b2d 100644 --- a/app/Console/Commands/AutomaticallyStartActivity.php +++ b/app/Console/Commands/AutomaticallyStartActivity.php @@ -53,13 +53,14 @@ class AutomaticallyStartActivity extends Command ->first(); $start = true; + $EventCalendarService = new EventCalendarService($this->logService); // 数据存在,且结束时间到了,结束时间 if ($runRes) { $end_time = $runRes['end_time']; $run_id = $runRes['id']; $is_manual = $runRes['is_manual']; if ($end_time && strtotime($end_time) <= $now_times) { - $this->updateStatus($run_id, 2); + $EventCalendarService->updateStatus($run_id, 2); } elseif ($is_manual == 1) { // 手动开始的不切换模式 $start = false; @@ -77,7 +78,6 @@ class AutomaticallyStartActivity extends Command ); })->orderBy('start_time') ->first(['id']); - $EventCalendarService = (new EventCalendarService($this->logService)); if ($res) { // 新活动运行 直接关闭旧活动 $new_id = $res['id'];