From e1152d91b922a95ea8d3ff71aa7174facf8b0b94 Mon Sep 17 00:00:00 2001 From: weigang Date: Wed, 21 Oct 2020 11:43:28 +0800 Subject: [PATCH] no message --- app/Service/v3/Implementations/FinancialRecordService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Service/v3/Implementations/FinancialRecordService.php b/app/Service/v3/Implementations/FinancialRecordService.php index b4c020d..c9343e0 100644 --- a/app/Service/v3/Implementations/FinancialRecordService.php +++ b/app/Service/v3/Implementations/FinancialRecordService.php @@ -56,7 +56,7 @@ class FinancialRecordService implements FinancialRecordServiceInterface 'desc' => $record['desc'], 'comment' => $record['comment'], 'status' => $record['status'], - 'current_balance' => $balance->balance + 'current_balance' => $balance->balance ?? 0 ] )->save();