From 652fca264c2468782a2d5a4fbe21a13df448b91a Mon Sep 17 00:00:00 2001 From: songhuangfeng123 <shf18767906695@163.com> Date: 星期一, 22 八月 2022 15:50:39 +0800 Subject: [PATCH] Merge branches 'genchuang' and 'master' of https://sinanoaq.cn:8888/r/safePlatform-out into genchuang --- safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/exception/GlobalExceptionHandler.java | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/exception/GlobalExceptionHandler.java b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/exception/GlobalExceptionHandler.java index c06d0bd..56d1879 100644 --- a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/exception/GlobalExceptionHandler.java +++ b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/exception/GlobalExceptionHandler.java @@ -110,6 +110,9 @@ public ResultVO errorHandler(Exception e) { e.printStackTrace(); logger.error(e.getMessage()); - return new ResultVO(ResultCodes.SERVER_ERROR); + ResultVO resultVO = new ResultVO<>(); + resultVO.setCode(ResultCodes.SERVER_ERROR.getCode()); + return resultVO; +// return new ResultVO(ResultCodes.SERVER_ERROR); } } -- Gitblit v1.9.2