HYJ 8 months ago
parent 27c81b89a9
commit bc65a79818

@ -18,6 +18,10 @@ class CancelUnPayOrder implements ShouldQueue
protected $order; protected $order;
/** /**
* Create a new job instance. * Create a new job instance.
* *
@ -63,6 +67,8 @@ class CancelUnPayOrder implements ShouldQueue
->get() ->get()
->map(function (OrderDetail $detail) { ->map(function (OrderDetail $detail) {
// 不回滚出售数量 // 不回滚出售数量
$product = $detail->product; $product = $detail->product;
$product->increment('count', $detail->number); $product->increment('count', $detail->number);

Loading…
Cancel
Save