Browse Source

no message

master
weigang 5 years ago
parent
commit
fccaa4d567
  1. 4
      app/Service/v3/Implementations/FinancialRecordService.php

4
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();

Loading…
Cancel
Save