From 19ccd594cd2ead844e32fd7eeb7e2d0a1ccaad5a Mon Sep 17 00:00:00 2001
From: SZH <szh_hello@163.com>
Date: 星期二, 19 七月 2022 15:26:15 +0800
Subject: [PATCH] 1、支持多数据源事务 2、增加事故管理模块 3、支持rocketmq 4、支持redis客户端redisson

---
 safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/exception/GlobalExceptionHandler.java |    2 +-
 1 files changed, 1 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 7e23d1d..d145f4d 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
@@ -38,7 +38,7 @@
     @ExceptionHandler(value = BusinessException.class)
     public ResultVO AHandler(BusinessException e) {
         logger.warn(e.getMessage());
-        return new ResultVO(e.getError());
+        return new ResultVO(e.getCode(),e.getMessage());
     }
 
 

--
Gitblit v1.9.2