diff --git a/uboot-common/src/main/java/com/chinaunicom/mall/ebtp/common/exception/service/BusinessExceptionHandlerAdvicePro.java b/uboot-common/src/main/java/com/chinaunicom/mall/ebtp/common/exception/service/BusinessExceptionHandlerAdvicePro.java index b62e246..c725c4e 100644 --- a/uboot-common/src/main/java/com/chinaunicom/mall/ebtp/common/exception/service/BusinessExceptionHandlerAdvicePro.java +++ b/uboot-common/src/main/java/com/chinaunicom/mall/ebtp/common/exception/service/BusinessExceptionHandlerAdvicePro.java @@ -96,7 +96,7 @@ public class BusinessExceptionHandlerAdvicePro { Map body = new HashMap<>(); body.put("errors", JsonUtils.objectToJson(invalidArguments)); body.put("error", HttpStatus.BAD_REQUEST.getReasonPhrase()); - + return BaseResponse.fail(HttpStatus.BAD_REQUEST.value(), "参数验证错误", Convert.toStr(body)); } @@ -160,7 +160,7 @@ public class BusinessExceptionHandlerAdvicePro { body.put("errors", exception.getMessage()); body.put("error", HttpStatus.BAD_REQUEST.getReasonPhrase()); - return BaseResponse.fail(HttpStatus.BAD_REQUEST.value(), "参数缺失" + exception.getMessage(), Convert.toStr(body)); + return BaseResponse.fail(HttpStatus.BAD_REQUEST.value(), "参数缺失", Convert.toStr(body)); } // ----------------------------data-------------------------------------- @@ -180,7 +180,7 @@ public class BusinessExceptionHandlerAdvicePro { body.put("errors", exception.getMessage()); body.put("error", HttpStatus.BAD_REQUEST.getReasonPhrase()); - return BaseResponse.fail(HttpStatus.BAD_REQUEST.value(), "数据库异常" + exception.getMessage(), Convert.toStr(body)); + return BaseResponse.fail(HttpStatus.BAD_REQUEST.value(), "数据库异常", Convert.toStr(body)); } /** @@ -252,8 +252,7 @@ public class BusinessExceptionHandlerAdvicePro { body.put("errors", exception.getMessage()); body.put("error", HttpStatus.INTERNAL_SERVER_ERROR.getReasonPhrase()); - return BaseResponse.fail(HttpStatus.INTERNAL_SERVER_ERROR.value(), "系统异常" + exception.getMessage(), - Convert.toStr(body)); + return BaseResponse.fail(HttpStatus.INTERNAL_SERVER_ERROR.value(), "系统异常", Convert.toStr(body)); } @ExceptionHandler({ TransactionSystemException.class })