From eb999e84f6f2d14b1440db9e654fd3c2b2d6b473 Mon Sep 17 00:00:00 2001
From: zhaowenyu <35589726@qq.com>
Date: Tue, 16 Dec 2025 16:32:43 +0800
Subject: [PATCH] 2025-12-16 zwy 切换飞行器摄像头时加打印日志,看下参数
---
ard-framework/src/main/java/com/ard/framework/security/handle/CustomAuthenticationSuccessHandler.java | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ard-framework/src/main/java/com/ard/framework/security/handle/CustomAuthenticationSuccessHandler.java b/ard-framework/src/main/java/com/ard/framework/security/handle/CustomAuthenticationSuccessHandler.java
index 4ae53bf..5733a29 100644
--- a/ard-framework/src/main/java/com/ard/framework/security/handle/CustomAuthenticationSuccessHandler.java
+++ b/ard-framework/src/main/java/com/ard/framework/security/handle/CustomAuthenticationSuccessHandler.java
@@ -1,5 +1,7 @@
package com.ard.framework.security.handle;
+import com.ard.common.constant.CacheConstants;
+import com.ard.common.constant.Constants;
import com.ard.common.core.redis.RedisCache;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@@ -12,7 +14,7 @@
public void onAuthenticationSuccess(Long userId) {
// 检查 Redis 中是否已有该用户登录
- String key = "login_userid:" + userId;
+ String key = CacheConstants.LOGIN_USERID_KEY + userId;
if (redisCache.hasKey(key)) {
throw new RuntimeException("用户已登录,请勿重复登录");
}
--
Gitblit v1.9.3