修复 记账问题

This commit is contained in:
iVampireSP.com 2022-11-16 18:36:47 +08:00
parent 8c1e7497b4
commit 7fa40f4c3e
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -144,7 +144,7 @@ private function addLog($user_id, $data)
$user = User::find($user_id); $user = User::find($user_id);
$current = [ $current = [
'balances' => $user->balances, 'balances' => $user->balance,
'drops' => $this->getDrops($user_id), 'drops' => $this->getDrops($user_id),
'user_id' => intval($user_id), 'user_id' => intval($user_id),
]; ];
@ -345,7 +345,7 @@ public function addIncomeBalance($user_id, $payment, $amount, $description)
'type' => 'income', 'type' => 'income',
'payment' => $payment, 'payment' => $payment,
'description' => $description, 'description' => $description,
'income' => (float)$amount, 'income' => (float) $amount,
'income_drops' => 0, 'income_drops' => 0,
'outcome' => 0, 'outcome' => 0,
'outcome_drops' => 0, 'outcome_drops' => 0,