修复会话管理-C端会话查询用户令牌列表为空的问题。

Signed-off-by: zhengwunong <704199387@qq.com>
pull/230/head
zhengwunong 4 months ago committed by 小诺
parent 92adbfb5a1
commit 978ab81463

@ -193,7 +193,7 @@ public class AuthSessionServiceImpl implements AuthSessionService {
authSessionPageResult.setSessionTimeout(CommonTimeFormatUtil.formatSeconds(saSession.getTimeout()));
}
List<AuthSessionPageResult.TokenSignInfo> tokenInfoList = saSession.getTokenSignList().stream().filter(tokenSign -> {
long tokenTimeout = SaManager.getSaTokenDao().getTimeout(StpUtil.stpLogic.splicingKeyTokenValue(tokenSign.getValue()));
long tokenTimeout = SaManager.getSaTokenDao().getTimeout(StpClientUtil.stpLogic.splicingKeyTokenValue(tokenSign.getValue()));
return tokenTimeout != -2; // 过滤掉tokenTimeout为-2的元素
}).map(tokenSign -> {
AuthSessionPageResult.TokenSignInfo tokenSignInfo = new AuthSessionPageResult.TokenSignInfo();

Loading…
Cancel
Save