|
|
@ -54,10 +54,8 @@ public class SecurityConfig implements WebMvcConfigurer {
|
|
|
|
String clientId = StpUtil.getExtra(LoginHelper.CLIENT_KEY).toString();
|
|
|
|
String clientId = StpUtil.getExtra(LoginHelper.CLIENT_KEY).toString();
|
|
|
|
if (!StringUtils.equalsAny(clientId, headerCid, paramCid)) {
|
|
|
|
if (!StringUtils.equalsAny(clientId, headerCid, paramCid)) {
|
|
|
|
// token 无效
|
|
|
|
// token 无效
|
|
|
|
throw NotLoginException.newInstance(
|
|
|
|
throw NotLoginException.newInstance(StpUtil.getLoginType(),
|
|
|
|
StpUtil.getLoginType(),
|
|
|
|
"-100", "客户端ID与Token不匹配",
|
|
|
|
NotLoginException.INVALID_TOKEN,
|
|
|
|
|
|
|
|
NotLoginException.NOT_TOKEN_MESSAGE,
|
|
|
|
|
|
|
|
StpUtil.getTokenValue());
|
|
|
|
StpUtil.getTokenValue());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|