Browse Source

Merge remote-tracking branch 'remotes/origin/dev_voice_attachment' into dev_temp

dev_shibei_match
jianjun 4 years ago
parent
commit
679a0b5b36
  1. 6
      epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/cloud/AliyunCloudStorageService.java

6
epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/cloud/AliyunCloudStorageService.java

@ -114,8 +114,7 @@ public class AliyunCloudStorageService extends AbstractCloudStorageService {
@Override
public boolean delete(String objectName,String privacyType) {
CloudStorageConfig.AliyunCloudStorageConfigProps props = getPropsByprivacyType(privacyType);
OSSClient client = new OSSClient(props.getAliyunEndPoint(), props.getAliyunAccessKeyId(),
props.getAliyunAccessKeySecret());
OSSClient client = getOssClient(privacyType);
try {
client.deleteObject(props.getAliyunBucketName(), objectName);
client.shutdown();
@ -141,8 +140,7 @@ public class AliyunCloudStorageService extends AbstractCloudStorageService {
@Override
public void down(String privacyType) throws IOException {
CloudStorageConfig.AliyunCloudStorageConfigProps props = getPropsByprivacyType(privacyType);
OSSClient client = new OSSClient(props.getAliyunEndPoint(), props.getAliyunAccessKeyId(),
props.getAliyunAccessKeySecret());
OSSClient client = getOssClient(privacyType);
try {
/*

Loading…
Cancel
Save