Merge remote-tracking branch 'origin/feature/REQ-3540' into feature/REQ-3540

This commit is contained in:
yanglin 2025-03-20 17:17:05 +08:00
commit ed8973c932

View File

@ -51,6 +51,7 @@ public class OssClient {
public String copy(String srcOssFileKey, String fullFileName) {
ServerFileBatchCopyObjectRequest copyRequest = new ServerFileBatchCopyObjectRequest();
copyRequest.setAppCode(docProps.getOssAppCode());
copyRequest.setBizScene(docProps.getOssBizScene());
ServerFileCopyObjectRequest item = new ServerFileCopyObjectRequest();
item.setFileUuid(UUIDUtil.uuidString());
item.setSrcFileKey(srcOssFileKey);
@ -85,6 +86,7 @@ public class OssClient {
private Map<String, String> copy0(List<String> ossFileKeys) {
ServerFileBatchCopyObjectRequest copyRequest = new ServerFileBatchCopyObjectRequest();
copyRequest.setAppCode(docProps.getOssAppCode());
copyRequest.setBizScene(docProps.getOssBizScene());
copyRequest.setCopyObjects(new HashSet<>());
for (String ossFileKey : new HashSet<>(ossFileKeys)) {
ServerFileCopyObjectRequest item = new ServerFileCopyObjectRequest();