!248 优化GlobalExceptionHandler.handleServiceException多余的类型转换,脚本乱码。

Merge pull request !248 from scmiot/dev
This commit is contained in:
疯狂的狮子Li
2022-11-16 01:41:47 +00:00
committed by Gitee
3 changed files with 4 additions and 4 deletions
@@ -105,7 +105,7 @@ public class GlobalExceptionHandler {
public R<Void> handleServiceException(ServiceException e, HttpServletRequest request) {
log.error(e.getMessage(), e);
Integer code = e.getCode();
return ObjectUtil.isNotNull(code) ? R.fail(code.intValue(), e.getMessage()) : R.fail(e.getMessage());
return ObjectUtil.isNotNull(code) ? R.fail(code, e.getMessage()) : R.fail(e.getMessage());
}
/**
+1 -1
View File
@@ -1,6 +1,6 @@
@echo off
echo.
echo [Ϣ] װWeḅnode_modulesļ
echo [信息] 安装Web工程,生成node_modules文件。
echo.
%~d0
+2 -2
View File
@@ -1,6 +1,6 @@
@echo off
echo.
echo [Ϣ] ʹ Vue CLI Web ̡
echo [信息] 使用 Vue CLI 命令运行 Web 工程。
echo.
%~d0
@@ -9,4 +9,4 @@ cd %~dp0
cd ..
npm run dev
pause
pause