Merge pull request !41 from develop
This commit is contained in:
赵世界 2022-08-20 06:56:20 +00:00 committed by Gitee
commit 431be15714
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -18,14 +18,13 @@ class Goods
public static function incrQuantity($shopId, $quantity, $businessGoods)
{
[$goodsCode, $skuCode] = explode('_', $businessGoods['external_sku_id']);
return [
'data' => [
'stock' => $quantity,
'business_sku_id' => $businessGoods['sku_id'],
'business_goods_id' => $businessGoods['goods_id'],
'erp_shop_id' => $shopId,
'erp_sku_id' => $skuCode,
'erp_sku_id' => $businessGoods['external_sku_id'],
],
'type' => '更新库存',
];