改进 扣费
This commit is contained in:
parent
7523b6ccdf
commit
11345064a6
@ -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,
|
||||
]);
|
||||
}
|
||||
|
@ -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',
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user