重试分账

This commit is contained in:
2025-10-29 09:53:51 +08:00
parent 619d8ffc85
commit bc8323020d

View File

@@ -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]); //平台