From b80a2c4a9d2db931b20ef6cc51ffacc8e66ade83 Mon Sep 17 00:00:00 2001 From: weiz <736250432@qq.com> Date: Tue, 23 Jan 2024 11:41:01 +0800 Subject: [PATCH] update --- app/adminapi/logic/finance/FinanceRefundApplyLogic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/adminapi/logic/finance/FinanceRefundApplyLogic.php b/app/adminapi/logic/finance/FinanceRefundApplyLogic.php index 9a837a3c6..0048d0468 100644 --- a/app/adminapi/logic/finance/FinanceRefundApplyLogic.php +++ b/app/adminapi/logic/finance/FinanceRefundApplyLogic.php @@ -82,7 +82,7 @@ class FinanceRefundApplyLogic extends BaseLogic $contract = Contract::field('project_id')->where('id',$params['contract_id'])->findOrEmpty(); Db::startTrans(); try { - FinanceRefundApply::create([ + FinanceRefundApply::where('id',$params['id'])->update([ 'project_id' => $contract['project_id'], 'contract_id' => $params['contract_id'], 'refund_date' => strtotime($params['refund_date']),