改进 扣费

This commit is contained in:
iVampireSP.com 2023-03-07 17:22:30 +08:00
parent 7523b6ccdf
commit 11345064a6
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ public function update(Request $request, User $user): JsonResponse
$module->reduce($balance, $request->description, true, [
'user_id' => $user->id,
]);
$trans = $user->charge($balance, 'module_balance', $request->description, [
$trans = $user->charge($balance, 'balance', $request->description, [
'module_id' => $module->id,
]);
}

View File

@ -220,7 +220,7 @@ public function reduce(string|null $amount = '0', string|null $description = '
'module_id' => $this->id,
'amount' => $amount,
'description' => $description,
'payment' => 'balance',
'payment' => 'module_balance',
'type' => 'payout',
];