给商品和单据的批量删除做图片的逻辑删除(给路径加上list,方便区分)
This commit is contained in:
@@ -410,8 +410,8 @@ public class SystemConfigService {
|
|||||||
String filePathStr = StringUtil.isNotEmpty(filePath)? filePath.substring(1):"";
|
String filePathStr = StringUtil.isNotEmpty(filePath)? filePath.substring(1):"";
|
||||||
String sourceObjectKey = filePathStr + "/" + path;
|
String sourceObjectKey = filePathStr + "/" + path;
|
||||||
String sourceSmallObjectKey = filePathStr + "-small/" + path;
|
String sourceSmallObjectKey = filePathStr + "-small/" + path;
|
||||||
String destinationObjectKey = DELETED + "/" + sourceObjectKey;
|
String destinationObjectKey = DELETED + "/list/" + sourceObjectKey;
|
||||||
String destinationSmallObjectKey = DELETED + "/" + sourceSmallObjectKey;
|
String destinationSmallObjectKey = DELETED + "/list/" + sourceSmallObjectKey;
|
||||||
this.copySourceToDest(ossClient, bucketName, sourceObjectKey, destinationObjectKey);
|
this.copySourceToDest(ossClient, bucketName, sourceObjectKey, destinationObjectKey);
|
||||||
this.copySourceToDest(ossClient, bucketName, sourceSmallObjectKey, destinationSmallObjectKey);
|
this.copySourceToDest(ossClient, bucketName, sourceSmallObjectKey, destinationSmallObjectKey);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user