调整后台发货
This commit is contained in:
@@ -61,6 +61,7 @@ class AjaxController
|
|||||||
->get()
|
->get()
|
||||||
->map(function ($sku) use ($address) {
|
->map(function ($sku) use ($address) {
|
||||||
$stockData = $address->user->getStockData();
|
$stockData = $address->user->getStockData();
|
||||||
|
info($stockData);
|
||||||
return [
|
return [
|
||||||
'id' => $sku->id,
|
'id' => $sku->id,
|
||||||
'text' => $sku->goods->name."(库存:{$stockData['residue']})",
|
'text' => $sku->goods->name."(库存:{$stockData['residue']})",
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ trait OrderActions
|
|||||||
event(new OrderPaid($this));
|
event(new OrderPaid($this));
|
||||||
|
|
||||||
//增加记录
|
//增加记录
|
||||||
$this->addTimeline();
|
// $this->addTimeline();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user