From c6e1be58c5e41a8cdae8f223c70bea39f5e960c5 Mon Sep 17 00:00:00 2001 From: click33 <2393584716@qq.com> Date: Wed, 19 Mar 2025 11:57:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20StpUtil.searchSessi?= =?UTF-8?q?onId=20=E7=AD=89=E4=BC=9A=E8=AF=9D=E6=9F=A5=E8=AF=A2=20API=20?= =?UTF-8?q?=E5=9C=A8=E5=A1=AB=E5=86=99=20null=20=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=97=B6=E6=97=A0=E6=B3=95=E6=AD=A3=E7=A1=AE=E6=8B=BC=E6=8E=A5?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/cn/dev33/satoken/stp/StpLogic.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sa-token-core/src/main/java/cn/dev33/satoken/stp/StpLogic.java b/sa-token-core/src/main/java/cn/dev33/satoken/stp/StpLogic.java index 55efe079..e221df9b 100644 --- a/sa-token-core/src/main/java/cn/dev33/satoken/stp/StpLogic.java +++ b/sa-token-core/src/main/java/cn/dev33/satoken/stp/StpLogic.java @@ -2388,7 +2388,7 @@ public class StpLogic { * @return token集合 */ public List searchTokenValue(String keyword, int start, int size, boolean sortType) { - return getSaTokenDao().searchData(splicingKeyTokenValue(""), keyword, start, size, sortType); + return getSaTokenDao().searchData(splicingKeyTokenValue(""), (keyword == null ? "" : keyword), start, size, sortType); } /** @@ -2402,7 +2402,7 @@ public class StpLogic { * @return sessionId集合 */ public List searchSessionId(String keyword, int start, int size, boolean sortType) { - return getSaTokenDao().searchData(splicingKeySession(""), keyword, start, size, sortType); + return getSaTokenDao().searchData(splicingKeySession(""), (keyword == null ? "" : keyword), start, size, sortType); } /** @@ -2416,7 +2416,7 @@ public class StpLogic { * @return sessionId集合 */ public List searchTokenSessionId(String keyword, int start, int size, boolean sortType) { - return getSaTokenDao().searchData(splicingKeyTokenSession(""), keyword, start, size, sortType); + return getSaTokenDao().searchData(splicingKeyTokenSession(""), (keyword == null ? "" : keyword), start, size, sortType); }