first commit

This commit is contained in:
2023-06-20 21:36:58 +08:00
parent 73ea40a18d
commit 96856617a8
13 changed files with 120 additions and 43 deletions

View File

@ -43,7 +43,7 @@ public class ExceptionAdvice {
@ExceptionHandler(ServiceException.class)
@ResponseBody
public AjaxResult handlerServiceException(ServiceException e) {
return AjaxResult.error(e.getMessage());
return Objects.isNull(e.getErrorCode()) ? AjaxResult.error(e.getMessage()) : AjaxResult.error(e.getErrorCode(), e.getMessage());
}
/**