!786 update 上传请求的预签名URL

* update 上传请求的预签名URL
This commit is contained in:
Jack
2025-11-13 08:31:04 +00:00
committed by 疯狂的狮子Li
parent f35938a068
commit d1d47d2599
2 changed files with 27 additions and 5 deletions

View File

@@ -270,7 +270,7 @@ public class SysOssServiceImpl implements ISysOssService, OssService {
OssClient storage = OssFactory.instance(oss.getService());
// 仅修改桶类型为 private 的URL临时URL时长为120s
if (AccessPolicyType.PRIVATE == storage.getAccessPolicy()) {
oss.setUrl(storage.getPrivateUrl(oss.getFileName(), Duration.ofSeconds(120)));
oss.setUrl(storage.createPresignedGetUrl(oss.getFileName(), Duration.ofSeconds(120)));
}
return oss;
}