You've already forked FrameTour-BE
通知异步发
This commit is contained in:
@ -68,6 +68,7 @@ public class CustomExceptionHandle {
|
|||||||
@ExceptionHandler(value = Exception.class)
|
@ExceptionHandler(value = Exception.class)
|
||||||
public ApiResponse<String> handle(Exception e) {
|
public ApiResponse<String> handle(Exception e) {
|
||||||
LOGGER.error("系统异常 -> {}", e.getMessage(), e);
|
LOGGER.error("系统异常 -> {}", e.getMessage(), e);
|
||||||
|
new Thread(() -> {
|
||||||
NotifyFactory.to().sendTo(
|
NotifyFactory.to().sendTo(
|
||||||
new NotifyContent(
|
new NotifyContent(
|
||||||
"帧途后台报错了!",
|
"帧途后台报错了!",
|
||||||
@ -75,6 +76,7 @@ public class CustomExceptionHandle {
|
|||||||
),
|
),
|
||||||
"default_user"
|
"default_user"
|
||||||
);
|
);
|
||||||
|
}).start();
|
||||||
return ApiResponse.buildResult(BizCodeEnum.SERVER_UNKONWN_ERROR);
|
return ApiResponse.buildResult(BizCodeEnum.SERVER_UNKONWN_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user