From fb4d3ca75510b84611ba1716dd2e9bb93d7c5269 Mon Sep 17 00:00:00 2001 From: liapples Date: Fri, 10 Sep 2021 11:17:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9$min=5Fid=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/OrderTimeout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/OrderTimeout.php b/app/Console/Commands/OrderTimeout.php index 4cfa82f..6a5eed9 100644 --- a/app/Console/Commands/OrderTimeout.php +++ b/app/Console/Commands/OrderTimeout.php @@ -66,12 +66,12 @@ class OrderTimeout extends Command Product::whereIn('id', explode(',', $v->product_ids))->increment('stock', $v->num); DB::commit(); + $min_id = $v->id; } catch (\Exception $exception) { DB::rollBack(); $this->line("订单ID {$v->id} 错误:" . $exception->getMessage()); } } - $min_id = $v->id; } }); $this->line('[' . date('Y-m-d H:i:s') . "] ID游标:$min_id ,等待下一个任务");