Merge branch 'feature/joint_log' into 'pre'
删除文件支持兼容app端历史数据处理 See merge request infra/oss!48
This commit is contained in:
commit
cdfe948ec5
@ -84,7 +84,11 @@ public class AliOssServiceImpl implements AliOssService {
|
||||
public boolean delFile(String bucket, String tgtFileKey) {
|
||||
log.debug("ali oss delFile bucket = {}, tatFileKey = {}", bucket, tgtFileKey);
|
||||
try {
|
||||
aliOssClient.getClient().deleteObject(bucket, tgtFileKey);
|
||||
OSS client = aliOssClient.getClient();
|
||||
if (bucket.contains(APP_PRO_BUCKET_NAME)) {
|
||||
client = aliOssAppProClient.getClient();
|
||||
}
|
||||
client.deleteObject(bucket, tgtFileKey);
|
||||
return Boolean.TRUE;
|
||||
} catch (Exception e) {
|
||||
LogUtil.error("ali oss delFile error = {}", e);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user