Merge pull request '修改商品采购价格设置的错误' (#421) from dev into main

Reviewed-on: #421
This commit is contained in:
mkm 2024-12-31 14:13:51 +08:00
commit 50d90f7c65

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);