去掉多余/
This commit is contained in:
@ -39,7 +39,7 @@ public class OssServiceImpl implements OssService {
|
|||||||
response.setAccessid(ossConfig.getAccessKeyId());
|
response.setAccessid(ossConfig.getAccessKeyId());
|
||||||
response.setPolicy(policy);
|
response.setPolicy(policy);
|
||||||
response.setSignature(signature);
|
response.setSignature(signature);
|
||||||
response.setDir(ossPlicyReq.getDir() + "/"); // 可以自定义上传目录
|
response.setDir(ossPlicyReq.getDir()); // 可以自定义上传目录
|
||||||
response.setHost("https://" + ossPlicyReq.getBucketName() + "." + ossConfig.getRegion() + ".aliyuncs.com");
|
response.setHost("https://" + ossPlicyReq.getBucketName() + "." + ossConfig.getRegion() + ".aliyuncs.com");
|
||||||
response.setExpire(expireEndTime / 1000);
|
response.setExpire(expireEndTime / 1000);
|
||||||
return response;
|
return response;
|
||||||
@ -67,7 +67,7 @@ public class OssServiceImpl implements OssService {
|
|||||||
List<String> startsWithCondition = new ArrayList<>();
|
List<String> startsWithCondition = new ArrayList<>();
|
||||||
startsWithCondition.add("starts-with");
|
startsWithCondition.add("starts-with");
|
||||||
startsWithCondition.add("$key");
|
startsWithCondition.add("$key");
|
||||||
startsWithCondition.add(ossPlicyReq.getDir() + "/");
|
startsWithCondition.add(ossPlicyReq.getDir());
|
||||||
conditions.add(startsWithCondition);
|
conditions.add(startsWithCondition);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user