From 7f843c5698ae12fd3accab79ad3f9a0637b12743 Mon Sep 17 00:00:00 2001 From: lewis <604446095@qq.com> Date: Thu, 20 Mar 2025 15:20:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E8=B4=A2=E5=8A=A1=E6=BA=AF?= =?UTF-8?q?=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/logic/product_source_link/ProductSourceLinkLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/logic/product_source_link/ProductSourceLinkLogic.php b/app/admin/logic/product_source_link/ProductSourceLinkLogic.php index c8630376..5e18c6ee 100644 --- a/app/admin/logic/product_source_link/ProductSourceLinkLogic.php +++ b/app/admin/logic/product_source_link/ProductSourceLinkLogic.php @@ -60,7 +60,7 @@ class ProductSourceLinkLogic extends BaseLogic $priceRate = PurchaseProductOfferLogic::getProductPriceRate(['id' => $offer['product_id']]); $attrs['purchase_price'] = $offer['total_price']; $rate = bcdiv($priceRate['supply_rate'], 100, 2); - $attrs['supply_price'] = bcmul($offer['total_price'], $rate, 2); + $attrs['supply_price'] = bcmul(bcmul($offer['price'], $rate, 2), $offer['nums'], 2); } ProductSourceLinkInfoLogic::add($attrs); }