修改分组价格设置

This commit is contained in:
DESKTOP-GMUNQ1B\Administrator 2024-12-17 11:47:19 +08:00
parent 0b025edcda
commit 4a06cb516f

View File

@ -308,6 +308,9 @@ class PurchaseProductOfferLogic extends BaseLogic
public static function setProductGroupPrice($params, $product)
{
$productCatePriceRate = StoreCategory::where('id', $product['top_cate_id'])->value('price_rate');
if (empty($productCatePriceRate)) {
return;
}
$storeProductGroupPrice = StoreProductGroupPrice::where('product_id', $product['id'])->select()->toArray();
$storeProductGroupPrice = reset_index($storeProductGroupPrice, 'group_id');
$priceConfig = [];