异常放开提示信息

This commit is contained in:
张松
2025-02-24 10:41:13 +08:00
parent e09b55938f
commit c697e0e6ea

View File

@@ -34,7 +34,7 @@ public class CzgControllerAdvice {
public CzgResult<Object> errorHandler(Exception ex) {
setErrorLog(ex);
log.error("", ex);
return CzgResult.failure(CzgRespCode.SYSTEM_ERROR);
return CzgResult.failure(CzgRespCode.SYSTEM_ERROR.getCode(), ex.getMessage());
}
@ResponseBody