修改商品采购价格设置

This commit is contained in:
lewis 2025-01-02 14:43:15 +08:00
parent b21bfe7657
commit 52561ce880

View File

@ -378,9 +378,7 @@ class PurchaseProductOfferLogic extends BaseLogic
break; break;
} }
} }
if (empty($storeProductGroupPrice)) { if (!empty($purchase)) {
return;
}
foreach ($productCatePriceRate as $k => $v) { foreach ($productCatePriceRate as $k => $v) {
if (empty($v['rate'])) { if (empty($v['rate'])) {
continue; continue;
@ -425,6 +423,7 @@ class PurchaseProductOfferLogic extends BaseLogic
} }
} }
} }
}
$data['price_config'] = $priceConfig; $data['price_config'] = $priceConfig;
$find = StoreProductPrice::where(['offer_id' => $params['id']])->find(); $find = StoreProductPrice::where(['offer_id' => $params['id']])->find();
if ($find) { if ($find) {