sth
This commit is contained in:
parent
bf418b8e3a
commit
4946ca4526
|
|
@ -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('未找到关联订单');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user