|
@@ -69,13 +69,13 @@ public class ApiAspect {
|
|
|
}
|
|
|
}
|
|
|
String token = CommonUtils.getToken(request);
|
|
|
-
|
|
|
+ log.info("用户token:{} 访问 {}", token, request.getRequestURI());
|
|
|
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);
|
|
|
if (StringUtils.isBlank(userId)) {
|