This commit is contained in:
ran.shang
2025-12-23 17:40:32 +08:00
parent 083eb8bfe2
commit be2e15b68a
421 changed files with 69 additions and 30627 deletions

View File

@@ -1,5 +1,6 @@
package com.newyetai.common.exception.handle;
import com.newyetai.common.util.EnvironmentUtils;
import java.util.List;
import java.util.Set;
import java.util.StringJoiner;
@@ -27,7 +28,6 @@ import org.springframework.web.bind.annotation.RestControllerAdvice;
import com.newyetai.common.AlitaResult;
import com.newyetai.common.constant.CommonConstants;
import com.newyetai.common.constant.SystemCodeEnum;
import com.newyetai.common.exception.BusinessException;
import com.newyetai.common.exception.NoneLoginException;
import com.newyetai.common.exception.WithResultException;
@@ -169,7 +169,7 @@ public class GlobalControllerExceptionHandler {
.msg(ExceptionUtils.getStackTrace(ex)).build();
LogUtils.log(exceptionLogDTO);
msg = String.format("系统异常[%s#%s],请稍后重试.",
SystemCodeEnum.getCodeByName(applicationName), exceptionLogDTO.getErrNo()
EnvironmentUtils.getSystemCode(), exceptionLogDTO.getErrNo()
);
LOGGER.error("系统异常,错误号:{}", exceptionLogDTO.getErrNo());
}