mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-05-11 14:22:08 +08:00
update 优化 pr57 代码结构
This commit is contained in:
@@ -156,11 +156,9 @@ public class SysOssServiceImpl implements ISysOssService {
|
||||
*/
|
||||
private SysOssVo matchingUrl(SysOssVo oss) {
|
||||
OssClient storage = OssFactory.instance(oss.getService());
|
||||
/**
|
||||
* 仅修改桶类型为 private 的URL,临时URL时长为100s
|
||||
*/
|
||||
// 仅修改桶类型为 private 的URL,临时URL时长为120s
|
||||
if (AccessPolicyType.PRIVATE == storage.getAccessPolicy()) {
|
||||
oss.setUrl(storage.getPrivateUrl(oss.getFileName(), 100));
|
||||
oss.setUrl(storage.getPrivateUrl(oss.getFileName(), 120));
|
||||
}
|
||||
return oss;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user