修改商品采购价格设置的错误

This commit is contained in:
lewis 2024-12-31 14:13:35 +08:00
parent 733adc5091
commit 77a1b62bb3

View File

@ -378,7 +378,13 @@ class PurchaseProductOfferLogic extends BaseLogic
break;
}
}
if (empty($storeProductGroupPrice)) {
return;
}
foreach ($productCatePriceRate as $k => $v) {
if (empty($v['rate'])) {
continue;
}
if ($v['id'] == 4 &&$purchase>0) {
//商户
$data['cost_lv'] = bcdiv($v['rate'], 100, 2);