This commit is contained in:
2025-09-22 15:08:56 +08:00
parent d5fa814cd6
commit b789f206ae
2 changed files with 4 additions and 2 deletions

View File

@@ -238,8 +238,11 @@ public class AuthServiceImpl implements IAuthService {
*/
public void logout() {
try {
// 清除内存中的token
accessToken = null;
refreshToken = null;
// 删除SQLite中的token缓存
cacheDataRepository.deleteByCacheKey("token");
} catch (Exception ignored) {}
}