openfeign的拦截器增加了cookie消息拦截
This commit is contained in:
@ -72,9 +72,11 @@ public class DefaultAttachmentClient implements AttachmentClient {
|
||||
|
||||
// 组织数据存储
|
||||
modelConvertor.toQueryResult(json).ifPresent(result -> {
|
||||
result.getData().forEach(data -> {
|
||||
detail.add(new AttachmentEntity().setBid(data.getObjectId()).setId(data.getFileId())
|
||||
.setFilename(data.getOriginalName()).setKey(data.getFileName()));
|
||||
Optional.ofNullable(result.getData()).ifPresent(data -> {
|
||||
data.forEach(item -> {
|
||||
detail.add(new AttachmentEntity().setBid(item.getObjectId()).setId(item.getFileId())
|
||||
.setFilename(item.getOriginalName()).setKey(item.getFileName()));
|
||||
});
|
||||
});
|
||||
});
|
||||
return Optional.of(detail);
|
||||
@ -212,7 +214,8 @@ public class DefaultAttachmentClient implements AttachmentClient {
|
||||
public Optional<UploadObject> upload(@NotNull String businessId, @NotNull String filename, @NotNull byte[] array) {
|
||||
removeDuplicateObject(businessId, filename);
|
||||
|
||||
String res = documentCenterService.upload("ebtp-mall-cloud", businessId, fileConvertor.toMultipartFile(filename, array));
|
||||
String res = documentCenterService.upload("ebtp-mall-cloud", businessId,
|
||||
fileConvertor.toMultipartFile(filename, array));
|
||||
|
||||
log.info("document center upload result: {}", res);
|
||||
|
||||
|
Reference in New Issue
Block a user