From 4c4c173b9c4c8d8c04886e168f8d751ef5dd4b22 Mon Sep 17 00:00:00 2001 From: hecaifeng <18810382694@163.com> Date: Mon, 2 Dec 2024 10:59:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=9C=A8=E7=BA=BF?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E5=AD=97=E7=AC=A6=E4=B8=B2=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/monitor/SysUserOnlineController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rds-console/console-admin/src/main/java/com/tongtech/web/controller/monitor/SysUserOnlineController.java b/rds-console/console-admin/src/main/java/com/tongtech/web/controller/monitor/SysUserOnlineController.java index 188217b..fff2b3a 100644 --- a/rds-console/console-admin/src/main/java/com/tongtech/web/controller/monitor/SysUserOnlineController.java +++ b/rds-console/console-admin/src/main/java/com/tongtech/web/controller/monitor/SysUserOnlineController.java @@ -48,7 +48,7 @@ public class SysUserOnlineController extends BaseController for (String key : keys) { LoginUser user = redisCache.getCacheObject(key); - if (StringUtils.isNotEmpty(ipaddr) && StringUtils.isNotEmpty(userName)) + if (StringUtils.isNotBlank(ipaddr) && StringUtils.isNotBlank(userName)) { if (StringUtils.equals(ipaddr, user.getIpaddr()) && StringUtils.equals(userName, user.getUsername())) { -- Gitee From fb500d595f5b7c3e9382466086caa941ef4424a0 Mon Sep 17 00:00:00 2001 From: hecaifeng <18810382694@163.com> Date: Mon, 2 Dec 2024 11:05:15 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=B8=AD=E5=BF=83=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=90=8D=E7=A7=B0=E5=88=A4=E6=96=AD=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/tongtech/console/task/RdsCenterDataTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rds-console/console-system/src/main/java/com/tongtech/console/task/RdsCenterDataTask.java b/rds-console/console-system/src/main/java/com/tongtech/console/task/RdsCenterDataTask.java index 812ea38..a88ba16 100644 --- a/rds-console/console-system/src/main/java/com/tongtech/console/task/RdsCenterDataTask.java +++ b/rds-console/console-system/src/main/java/com/tongtech/console/task/RdsCenterDataTask.java @@ -247,7 +247,7 @@ public class RdsCenterDataTask { //找到对应的哨兵服务,如果不存在就创建新的服务 String serviceName = statSentinel.getGroup(); - if(StringUtils.isNotEmpty(serviceName)) { + if(StringUtils.isNotBlank(serviceName)) { serv = servService.selectServiceBy(serviceName); if (serv == null) { serv = new RdsService(serviceName, DeployModeEnum.SENTINEL, this.defaulVersion); -- Gitee