|
@@ -79,20 +79,12 @@ public class ApiAspect {
|
|
|
//String userId = CommonUtils.getUserId(request);
|
|
|
String userId = (String)redisUtil.get(Constant.RedisPrefix.TOKEN_WX+token);
|
|
|
if (StringUtils.isBlank(userId)) {
|
|
|
- throw new RemoteServiceException(ResponseHelper.ResponseCode_TOKEN_ID_ERROR, "请求不合法");
|
|
|
+ throw new RemoteServiceException(ResponseHelper.ResponseCode_AUTH_ERROR, "请求不合法");
|
|
|
}
|
|
|
-
|
|
|
- /* User userServiceById = userService.getById(jwtUserId);
|
|
|
-
|
|
|
- if(userServiceById == null) {
|
|
|
- throw new RemoteServiceException(ResponseHelper.ResponseCode_TOKEN_ID_ERROR, "请求不合法, token");
|
|
|
- }*/
|
|
|
-
|
|
|
User user = userService.getById(userId);
|
|
|
if(user == null){
|
|
|
- throw new RemoteServiceException(ResponseHelper.ResponseCode_AUTH_ERROR, "用户不存在,请联系相关人员");
|
|
|
+ throw new RemoteServiceException(ResponseHelper.ResponseCode_AUTH_ERROR, "用户不存在,请联系相关人员");
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
private Method getSourceMethod(JoinPoint jp) {
|