修正会员中心错误

This commit is contained in:
兮玥 2023-10-22 19:33:02 +08:00
parent 89edc73cdc
commit 6a12c4fd59

View File

@ -69,7 +69,7 @@ public class StpMemberUtil {
tokenValue = request.getCookieValue(keyTokenName); tokenValue = request.getCookieValue(keyTokenName);
// 临时处理一下 // 临时处理一下
if (StringUtils.isNotEmpty(tokenValue)) { if (StringUtils.isNotEmpty(tokenValue)) {
String tokenPrefix = getConfig().getTokenPrefix(); String tokenPrefix = getConfigOrGlobal().getTokenPrefix();
if (StringUtils.isNotEmpty(tokenPrefix) && !tokenValue.startsWith(tokenPrefix + SaTokenConsts.TOKEN_CONNECTOR_CHAT)) { if (StringUtils.isNotEmpty(tokenPrefix) && !tokenValue.startsWith(tokenPrefix + SaTokenConsts.TOKEN_CONNECTOR_CHAT)) {
tokenValue = tokenPrefix + SaTokenConsts.TOKEN_CONNECTOR_CHAT + tokenValue; tokenValue = tokenPrefix + SaTokenConsts.TOKEN_CONNECTOR_CHAT + tokenValue;
} }