修改 字段

This commit is contained in:
iVampireSP.com 2022-11-16 20:31:15 +08:00
parent f0c39a8a72
commit 92d92d445a
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 4 additions and 12 deletions

View File

@ -164,7 +164,7 @@ private function addLog($user_id, $data)
$user = User::find($user_id);
$current = [
'balances' => $user->balance,
'balance' => $user->balance,
'drops' => $this->getDrops($user_id),
'user_id' => intval($user_id),
];
@ -198,7 +198,7 @@ public function getDrops($user_id = null): float
return $drops['drops'];
}
public function addIncomeDrops($user_id, $amount, $description, $payment = 'balances')
public function addIncomeDrops($user_id, $amount, $description, $payment = 'balance')
{
$data = [
'type' => 'income',
@ -232,8 +232,6 @@ public function reduceAmount($user_id, $amount = 0, $description = '扣除费用
} finally {
optional($lock)->release();
}
return false;
}
public function addPayoutBalance($user_id, $amount, $description, $module_id = null)
@ -280,8 +278,6 @@ public function reduceAmountModuleFail($user_id, $module_id, $amount = 0, $descr
} finally {
optional($lock)->release();
}
return false;
}
public function reduceHostAmount($user_id, $host_id, $module_id, $amount = 0, $description = '扣除费用请求。')
@ -303,15 +299,13 @@ public function reduceHostAmount($user_id, $host_id, $module_id, $amount = 0, $d
} finally {
optional($lock)->release();
}
return false;
}
public function addHostPayoutBalance($user_id, $host_id, $module_id, $amount, $description)
{
$data = [
'type' => 'payout',
'payment' => 'balances',
'payment' => 'balance',
'description' => $description,
'income' => 0,
'income_drops' => 0,
@ -355,8 +349,6 @@ public function addAmount($user_id, $payment = 'console', $amount = 0, $descript
} finally {
optional($lock)->release();
}
return false;
}
public function addIncomeBalance($user_id, $payment, $amount, $description)

View File

@ -55,7 +55,7 @@
</td>
<td>
{{ $t->balances }}
{{ $t->balance }}
<br/>
{{ $t->drops }} Drops
</td>