From bc8323020dbf37d329cb5246a9570e7657f9bd1f Mon Sep 17 00:00:00 2001 From: lq Date: Wed, 29 Oct 2025 09:53:51 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/forms/LedgerForm.php b/common/forms/LedgerForm.php index 450474b..9c9232d 100644 --- a/common/forms/LedgerForm.php +++ b/common/forms/LedgerForm.php @@ -726,6 +726,7 @@ class LedgerForm extends BaseModel $logDecoct->saveOrFail(); } + $processPriceTotal = 0; //增加加工费 if($productOrder->process_price > 0){ $platformProcessTotal = Ledger::find()->where(['order_id' => $this->order_id, 'user_type' => 2, 'order_type' => 1, 'fee_type' => 5])->sum('money'); // 该订单加工费用 @@ -761,7 +762,7 @@ class LedgerForm extends BaseModel $logDelivery->saveOrFail(); } - $platformTotal = round($platformDrugTotal+$platformDeliveryTotal?? 0+$platformDecoctTotal, 2); //该订单平台分佣总金额 + $platformTotal = round($platformDrugTotal+$platformDeliveryTotal?? 0+$platformDecoctTotal + $processPriceTotal, 2); //该订单平台分佣总金额 //可提现金额表更新 CashAccount::updateAllCounters(['able_cash' => $platformTotal, 'total_cash' => $platformTotal],['user_type' => 2]); //平台