|
@@ -47,7 +47,7 @@ public class GlobalExceptionHandler {
|
|
|
@ExceptionHandler(value = NotLoginException.class)
|
|
@ExceptionHandler(value = NotLoginException.class)
|
|
|
public Result<?> notLogin(Throwable ex) {
|
|
public Result<?> notLogin(Throwable ex) {
|
|
|
log.error("[NotLoginException]", ex);
|
|
log.error("[NotLoginException]", ex);
|
|
|
- return Result.failed(ResultCode.ERROR, Global.UN_AUTH);
|
|
|
|
|
|
|
+ return Result.failed(ResultCode.UN_AUTH, Global.UN_AUTH);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@@ -67,7 +67,7 @@ public class GlobalExceptionHandler {
|
|
|
}
|
|
}
|
|
|
String errMsg = sb.toString();
|
|
String errMsg = sb.toString();
|
|
|
log.error("参数校验异常:{}", errMsg);
|
|
log.error("参数校验异常:{}", errMsg);
|
|
|
- return Result.failed(ResultCode.ERROR, errMsg);
|
|
|
|
|
|
|
+ return Result.failed(ResultCode.FAILED, errMsg);
|
|
|
}
|
|
}
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
@ExceptionHandler(ConstraintViolationException.class)
|
|
@ExceptionHandler(ConstraintViolationException.class)
|
|
@@ -84,7 +84,7 @@ public class GlobalExceptionHandler {
|
|
|
first = false;
|
|
first = false;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- return Result.failed(ResultCode.ERROR, sb.toString());
|
|
|
|
|
|
|
+ return Result.failed(ResultCode.FAILED, sb.toString());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|