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