This commit is contained in:
xman 2025-06-29 12:43:30 +08:00
parent 75007bd2d7
commit 4704965778

View File

@ -733,7 +733,7 @@ class Order extends Backend
$result = $order->allowField(true)->save($params);
$dispatch = OrderDispatch::where('order_id', $order->id)->where('status','>',0)->find();
$dispatch = OrderDispatch::where('order_id', $order->id)->where('status','>=',0)->find();
if (!empty($dispatch)) {
$orderLogic = new OrderLogic();
$orderLogic->cancelOrderDispatch($dispatch, $this->auth, '订单被取消', false);