attempt to fix risky ops

This commit is contained in:
Pig Fang 2019-02-16 16:45:58 +08:00
parent b6a4353d38
commit 752bb80885

View File

@ -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,