mirror of
https://github.com/v2board/v2board.git
synced 2025-06-12 20:47:56 +08:00
update
This commit is contained in:
@ -87,10 +87,13 @@ class UserService
|
||||
if (!$user) {
|
||||
return true;
|
||||
}
|
||||
$user->t = time();
|
||||
$user->u = $user->u + $u;
|
||||
$user->d = $user->d + $d;
|
||||
if (!$user->save()) {
|
||||
try {
|
||||
$user->update([
|
||||
't' => time(),
|
||||
'u' => DB::raw("u + {$u}"),
|
||||
'd' => DB::raw("d + {$d}")
|
||||
]);
|
||||
} catch (\Exception $e) {
|
||||
return false;
|
||||
}
|
||||
$mailService = new MailService();
|
||||
|
Reference in New Issue
Block a user