publish icbc-sandbox-1.0.0

This commit is contained in:
曾文豪
2024-11-09 13:57:38 +08:00
parent 3aca586bd4
commit b27ed9f88b
5 changed files with 35 additions and 10 deletions

View File

@@ -0,0 +1,25 @@
## 工作流触发时机
on:
push:
tags:
- '*'
jobs:
## 任务名称
local-deploy:
## 任务执行的服务器
runs-on: tiesheng-local
## 任务步骤
steps:
## 检出代码(固定配置)
- name: Check out repository code
uses: https://git.tieshengkeji.com/actions/checkout@v4
## maven打包
- name: Maven deploy
run: |
mvn deploy

View File

@@ -130,6 +130,13 @@
</pluginRepository>
</pluginRepositories>
<distributionManagement>
<repository>
<id>gitea</id>
<url>https://git.tieshengkeji.com/api/packages/tieshengkeji/maven</url>
</repository>
</distributionManagement>
<build>
<pluginManagement>
<plugins>

View File

@@ -17,7 +17,6 @@ public class ApiResp<T> {
private int code;
private String message;
private Throwable exception;
private T data;
private long recordsTotal = 0;
private boolean encrypt = false;
@@ -182,11 +181,4 @@ public class ApiResp<T> {
this.encrypt = encrypt;
}
public Throwable getException() {
return exception;
}
public void setException(Throwable exception) {
this.exception = exception;
}
}

View File

@@ -115,6 +115,8 @@ public class FileUploadService {
* @param fileMd5
*/
public String chunkMerge(String fileMd5, String fileExt) {
// 0校验文件类型是否合法
tieshengWebConfigurer.uploadFileCheck(fileExt);
// 1获取文件块的目录
FileUploadPath folder = FileUploadPath.folder(fileMd5);

View File

@@ -35,8 +35,7 @@ public interface TieshengWebConfigurer {
*/
default ApiResp<String> addExceptionHandler(Exception e) {
ApiResp<String> apiResp = ApiResp.respCust(ApiRespEnum.ServerError);
apiResp.setException(e);
LogFactory.get().info(apiResp.getException());
LogFactory.get().info(e);
return apiResp;
}