支持微信服务通知,调整方法

This commit is contained in:
2025-01-06 18:44:08 +08:00
parent afaac1bb0c
commit 9b32c2fd75
9 changed files with 98 additions and 4 deletions

View File

@ -62,7 +62,10 @@ public class CustomExceptionHandle {
@ExceptionHandler(value = Exception.class)
public ApiResponse<String> handle(Exception e) {
LOGGER.error("系统异常 -> {}", e.getMessage(), e);
NotifyFactory.to().send(new NotifyContent("帧途后台报错了!", e.getMessage() + "\n\n" + Arrays.toString(e.getStackTrace())));
NotifyFactory.to().sendTo(
new NotifyContent("帧途后台报错了!", e.getMessage() + "\n\n" + Arrays.toString(e.getStackTrace())),
"default_user"
);
return ApiResponse.buildResult(BizCodeEnum.SERVER_UNKONWN_ERROR);
}