|
@@ -69,6 +69,12 @@ public class ApiAspect {
|
|
|
}
|
|
|
}
|
|
|
String token = CommonUtils.getToken(request);
|
|
|
+
|
|
|
+ String jwtUserId = CommonUtils.getUserId(request);
|
|
|
+ if (token.equals(jwtUserId)) {
|
|
|
+ throw new RemoteServiceException(ResponseHelper.ResponseCode_TOKEN_ID_ERROR, "请求不合法");
|
|
|
+ }
|
|
|
+
|
|
|
// log.info("用户token:{} 访问 {}", token, request.getRequestURI());
|
|
|
//String userId = CommonUtils.getUserId(request);
|
|
|
String userId = (String)redisUtil.get(Constant.RedisPrefix.TOKEN_WX+token);
|