This commit is contained in:
xman 2025-04-27 09:58:17 +08:00
parent bf418b8e3a
commit 4946ca4526

View File

@ -130,6 +130,8 @@ class OrderLogic
if($nocancelOrder){ if($nocancelOrder){
$order = Order::where('id',$dispatch->order_id)->where('status',Order::STATUS_DISPATCHED)->find(); $order = Order::where('id',$dispatch->order_id)->where('status',Order::STATUS_DISPATCHED)->find();
$order->worker_id = 0;
$order->save();
if(empty($order)){ if(empty($order)){
throw new Exception('未找到关联订单'); throw new Exception('未找到关联订单');
} }