From 8f9aa31c7615480ea0099094b8fdc4549e13ff12 Mon Sep 17 00:00:00 2001 From: lq Date: Wed, 29 Oct 2025 09:59:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E8=AF=95=E5=88=86=E8=B4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/forms/LedgerForm.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/forms/LedgerForm.php b/common/forms/LedgerForm.php index 3e4c7ac..4a19a7d 100644 --- a/common/forms/LedgerForm.php +++ b/common/forms/LedgerForm.php @@ -763,7 +763,9 @@ class LedgerForm extends BaseModel $logDelivery->saveOrFail(); } - $platformTotal = round($platformDrugTotal+$processPriceTotal+$platformDeliveryTotal?? 0+$platformDecoctTotal, 2); //该订单平台分佣总金额 + $money1 = bcadd($platformDrugTotal, $processPriceTotal, 2); + $money2 = bcadd($platformDeliveryTotal, $platformDecoctTotal, 2); + $platformTotal = round(bcadd($money1, $money2, 2), 2); //该订单平台分佣总金额 //可提现金额表更新 CashAccount::updateAllCounters(['able_cash' => $platformTotal, 'total_cash' => $platformTotal],['user_type' => 2]); //平台