更新库存

This commit is contained in:
yaooo 2023-09-28 09:37:25 +08:00
parent 878219bd7c
commit fad5f44664

View File

@ -96,7 +96,7 @@ class StoreProduct extends BaseController
}else{
$product_type=0;//普通商品
}
// $productId = $this->repository->create($data, $product_type, 1);
$productId = $this->repository->create($data, $product_type, 1);
// $unique = Db::name('store_product_attr_value')->where('product_id', $productId)->value('unique');
// if (!empty($unique) && $stockNum > 0) {
// $this->repository->stockIn($merId, [