refactor: comment out update-check routes and refactor findUserByBearerToken, calcResetDayByMonthFirstDay, calcResetDayByExpireDay

This commit is contained in:
xboard
2025-05-24 20:47:27 +08:00
parent 7c86193215
commit fadeacf6f8
3 changed files with 16 additions and 16 deletions
+3 -1
View File
@@ -58,7 +58,9 @@ class AuthService
$accessToken = PersonalAccessToken::findToken($token);
return $accessToken?->tokenable;
$tokenable = $accessToken?->tokenable;
return $tokenable instanceof User ? $tokenable : null;
}
/**