From d9ac27d12f770baad9d914075c14d8185f478e37 Mon Sep 17 00:00:00 2001 From: lemon <15040771@qq.com> Date: Fri, 10 Sep 2021 10:45:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/DemandTimeout.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Console/Commands/DemandTimeout.php b/app/Console/Commands/DemandTimeout.php index 6123692..e0b00b3 100644 --- a/app/Console/Commands/DemandTimeout.php +++ b/app/Console/Commands/DemandTimeout.php @@ -40,10 +40,10 @@ class DemandTimeout extends Command */ public function handle() { - Log::info('定时任务'); - //Demand::query() - // ->where('deadline','<=' ,now()) - // ->where('status',DemandTraits::$stateKey[0]) - // ->update(['status' => DemandTraits::$stateKey[2]]); + //Log::info('定时任务'); + Demand::query() + ->where('deadline','<=' ,now()) + ->where('status',DemandTraits::$stateKey[0]) + ->update(['status' => DemandTraits::$stateKey[2]]); } }