修改分组价格设置
This commit is contained in:
parent
0b025edcda
commit
4a06cb516f
@ -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 = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user