attempt to fix risky ops
This commit is contained in:
parent
b6a4353d38
commit
752bb80885
@ -92,6 +92,8 @@ class UserController extends Controller
|
||||
$user = Auth::user();
|
||||
if ($user->canSign()) {
|
||||
$acquiredScore = $user->sign();
|
||||
$user->last_sign_at = get_datetime_string();
|
||||
$user->save();
|
||||
|
||||
return json([
|
||||
'errno' => 0,
|
||||
|
Loading…
Reference in New Issue
Block a user