修复订单押金支付成功后的财务流程状态更新问题
在处理订单押金支付成功的逻辑中,添加了更新财务流程状态的步骤。具体来说,对于支付成功的押金,通过`StoreFinanceFlow`模型的`where`方法查找相关财务记录,并使用`update`方法将其状态设置为1(通常表示已支付或成功状态)。这确保了系统能够正确反映订单押金的支付状态。
This commit is contained in:
parent
9103d26df9
commit
fc18d00d81
@ -162,6 +162,7 @@ class StoreFinanceFlowLogic extends BaseLogic
|
||||
}
|
||||
}
|
||||
if ($deposit > 0) {
|
||||
StoreFinanceFlow::where(['order_id' => $order_id, 'financial_type' => 11])->update(['status' => 1]);
|
||||
$capitalFlowDao->storeIncome('store_paid_deposit_add', 'order', $order_id, $deposit,'','paid_deposit');
|
||||
SystemStore::where('id', $store_id)->inc('paid_deposit', $deposit)->update();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user