From 9b6bdb61bb5f08dc0254aa13bab15ce80c64f1c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Thu, 8 Sep 2022 16:29:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=91=E9=80=81=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/data/controller/shop/Send.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/data/controller/shop/Send.php b/app/data/controller/shop/Send.php index be686f251..6974f0561 100644 --- a/app/data/controller/shop/Send.php +++ b/app/data/controller/shop/Send.php @@ -133,10 +133,10 @@ class Send extends Controller $vo['status'] = 2; $vo['company_name'] = $company['name']; $vo['send_datetime'] = $vo['send_datetime'] ?? date('Y-m-d H:i:s'); - if ($order['status'] === 3) { - $map = ['order_no' => $vo['order_no']]; + if ($order['status'] === 4) { // 更新订单发货状态 - ShopOrder::mk()->where($map)->update(['status' => 4]); + $map = ['order_no' => $vo['order_no']]; + ShopOrder::mk()->where($map)->update(['status' => 5]); } } }