Helius
2021-05-21 1b5131451c896d6a3b2c9f72b3d23dc531eb52db
src/main/java/com/xcong/excoin/common/aop/ExceptionCatchAspect.java
@@ -60,7 +60,7 @@
            throw ex;
        }
        if (profiles.equals("dev")) {
        if (profiles.equals("dev") || profiles.equals("test")) {
            throw ex;
        }
@@ -78,7 +78,13 @@
                    exceptionData.setSimpleMsg(ex.getMessage());
                    sysExceptionDetailDao.insert(exceptionData);
                    DingTalkUtils.sendMsg(profiles + "--" + ex.getMessage(), exStr.substring(0, 200), exceptionData.getId());
                    String msg = "";
                    if (exStr.length() > 200) {
                        msg = exStr.substring(0, 200);
                    } else {
                        msg = exStr;
                    }
                    DingTalkUtils.sendMsg(profiles + "--" + ex.getMessage(), msg, exceptionData.getId());
                } catch (Exception e) {
                    log.error("exception aop", e);
                }