From fccaa4d5679dd98779b82a3f2c2f8356bf76c10e Mon Sep 17 00:00:00 2001 From: weigang Date: Tue, 20 Oct 2020 10:31:47 +0800 Subject: [PATCH] no message --- app/Service/v3/Implementations/FinancialRecordService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Service/v3/Implementations/FinancialRecordService.php b/app/Service/v3/Implementations/FinancialRecordService.php index ea57d38..72bf54f 100644 --- a/app/Service/v3/Implementations/FinancialRecordService.php +++ b/app/Service/v3/Implementations/FinancialRecordService.php @@ -43,7 +43,7 @@ class FinancialRecordService implements FinancialRecordServiceInterface $balance = UserBalance::query()->firstOrNew([ 'user_type' => $record['user_type'], 'source_id' => $user_id - ])->value('balance'); + ]); return $financialRecord->fill( [ @@ -56,7 +56,7 @@ class FinancialRecordService implements FinancialRecordServiceInterface 'desc' => $record['desc'], 'comment' => $record['comment'], 'status' => $record['status'], - 'current_balance' => $balance + 'current_balance' => $balance->balance ] )->save();