1、站内信相关查询移除redis中查询状态,改为已读后新增一条message_readinfo,相关方法逻辑修改,移除无用方法;2、全局GlobalExceptionHandler捕获BindException时丢出错误值而不是堆栈异常;

This commit is contained in:
gaoqr
2024-07-16 10:51:07 +08:00
parent aa09d8e96c
commit 0e3a2a33d2
14 changed files with 249 additions and 276 deletions
@@ -134,7 +134,7 @@ public class GlobalExceptionHandler {
log.warn("[handleBindException]", ex);
FieldError fieldError = ex.getFieldError();
assert fieldError != null; // 断言,避免告警
return CommonResult.error(BAD_REQUEST.getCode(), String.format("请求参数不正确:%s", fieldError.getDefaultMessage()));
return CommonResult.error(BAD_REQUEST.getCode(), String.format("请求参数不正确:%s", fieldError.getRejectedValue()));
}
/**