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]); } } }