From 0a5eb23a4c0ba0f2b4d6fa47a669f8b535513955 Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Mon, 20 Dec 2021 21:13:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=90=8E=E5=8F=B0=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E8=AE=A2=E5=8D=95=E7=9A=84=E6=93=8D=E4=BD=9C=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/Services/OrderService.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Admin/Services/OrderService.php b/app/Admin/Services/OrderService.php index 62de8cab..62e5344d 100644 --- a/app/Admin/Services/OrderService.php +++ b/app/Admin/Services/OrderService.php @@ -47,6 +47,12 @@ class OrderService 'pay_way' => Order::PAY_WAY_OFFLINE, 'pay_at' => now(), ]); + + //记录操作日志 + OrderLog::create([ + 'order_id'=> $order->id, + 'content'=> '修改订单状态为【已支付】', + ]); } }