[REQ-2259]上传至指定文件

This commit is contained in:
xudawei 2024-07-01 21:18:31 +08:00
parent 0af4e47039
commit 3797afcd06
2 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,7 @@ import cn.axzo.oss.manager.api.dto.request.MultipartUploadDto;
import cn.axzo.oss.manager.api.dto.response.ManaGetObjectMetaResponse;
import cn.axzo.oss.manager.api.dto.response.SignUrlDownloadResponse;
import cn.axzo.oss.manager.api.vo.SignUrlUploadVo;
import com.alibaba.fastjson.JSON;
import com.aliyun.oss.model.SimplifiedObjectMeta;
import com.obs.services.model.ObjectMetadata;
import com.obs.services.model.TemporarySignatureResponse;
@ -286,6 +287,7 @@ public class FileManagerImpl implements FileManager {
*/
public String uploadByUrl(String bulkName, String keyPath, String fileName, String url,
String channelCode) {
log.info("uploadByUrl,bulkName:{},keyPath:{},fileName:{},url:{},channelCode:{}", bulkName, keyPath, fileName, url, channelCode);
try {
switch (ChannelTypeEnum.getChannelTypeByChannelCode(channelCode)) {
case OSS:

View File

@ -12,6 +12,7 @@ import cn.axzo.oss.manager.api.dto.response.SignUrlDownloadResponse;
import cn.axzo.oss.service.api.FileCopyToDictService;
import cn.axzo.oss.service.api.FileService;
import cn.hutool.core.lang.Pair;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
@ -44,6 +45,7 @@ public class FileCopyToDictServiceImpl implements FileCopyToDictService {
@Override
public String copyToDict(ServerFileCopyToDictDto dto) {
log.info("copyToDict-start,dto:{}", JSON.toJSONString(dto));
//1 获取桶基础与配置
Pair<AppChannelBucket, FileUploadConfig> pair = this.fileService.channelBucketAndConfig(dto.getAppCode(), dto.getBizScene(), dto.getChannelCode());