mirror of
https://github.com/v2board/v2board.git
synced 2025-06-12 20:47:56 +08:00
fix: change plan refund surplus amount
This commit is contained in:
@ -55,7 +55,7 @@ class UserService
|
||||
|
||||
public function addBalance(int $userId, int $balance):bool
|
||||
{
|
||||
$user = User::find($userId);
|
||||
$user = User::lockForUpdate()->find($userId);
|
||||
if (!$user) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user