This commit is contained in:
dute7liang
2024-01-01 21:41:13 +08:00
parent 0128d6437e
commit a39b919bae
39 changed files with 638 additions and 65 deletions

View File

@@ -113,7 +113,7 @@ public class OssClient {
} catch (Exception e) {
throw new OssException("上传文件失败,请检查配置信息:[" + e.getMessage() + "]");
}
return UploadResult.builder().url(getUrl() + "/" + path).filename(path).build();
return UploadResult.builder().url(getUrl() + "/" + path).path(path).filename(path).build();
}
public UploadResult upload(File file, String path) {

View File

@@ -17,6 +17,8 @@ public class UploadResult {
*/
private String url;
private String path;
/**
* 文件名
*/