修改发送状态

This commit is contained in:
邹景立 2022-09-08 16:29:23 +08:00
parent 48d31261ba
commit 9b6bdb61bb

View File

@ -133,10 +133,10 @@ class Send extends Controller
$vo['status'] = 2; $vo['status'] = 2;
$vo['company_name'] = $company['name']; $vo['company_name'] = $company['name'];
$vo['send_datetime'] = $vo['send_datetime'] ?? date('Y-m-d H:i:s'); $vo['send_datetime'] = $vo['send_datetime'] ?? date('Y-m-d H:i:s');
if ($order['status'] === 3) { if ($order['status'] === 4) {
$map = ['order_no' => $vo['order_no']];
// 更新订单发货状态 // 更新订单发货状态
ShopOrder::mk()->where($map)->update(['status' => 4]); $map = ['order_no' => $vo['order_no']];
ShopOrder::mk()->where($map)->update(['status' => 5]);
} }
} }
} }