mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-11-30 22:20:45 +00:00
减少数据生成
This commit is contained in:
parent
1b06e308c8
commit
481042ac22
@ -93,7 +93,8 @@ class BusinessGoodsSkusController extends Controller
|
||||
if (empty($sku)) {
|
||||
$this->setValidatorFailResponse('未找到对应的商品,请核实后再次同步或删除此平台商品');
|
||||
} else {
|
||||
event(new BusinessOrdersUpdate($businessGoodsSku, 0));
|
||||
$shop = $businessGoodsSku->shop;
|
||||
BusinessFactory::init()->make($shop['plat_id'])->setShopWithId($shop['id'])->incrQuantity($businessGoodsSku, 0, false);
|
||||
$this->res['message'] = '库存同步请求发送成功,具体结果查看日志';
|
||||
}
|
||||
return response($this->res, $this->res['httpCode']);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user