【fix】 调整文件下载统一存放本地
This commit is contained in:
parent
4c1757aa32
commit
4e8f4b0cff
@ -1201,13 +1201,8 @@ public class DataImportNewServiceImpl implements DataImportNewService {
|
|||||||
if (response.body() != null && response.code() == 200) {
|
if (response.body() != null && response.code() == 200) {
|
||||||
InputStream inputStream = response.body().byteStream();
|
InputStream inputStream = response.body().byteStream();
|
||||||
// log.info("文件下载返回状态码:{},返回信息:{}", response.code(),response.message());
|
// log.info("文件下载返回状态码:{},返回信息:{}", response.code(),response.message());
|
||||||
switch (Const.FILE_TYPE) {
|
dumpToServer(headers, id, filePath, url, response, inputStream);
|
||||||
case OSS:
|
|
||||||
// 上传到oss
|
|
||||||
OssUtil.upload(inputStream, filePath);
|
|
||||||
default:
|
|
||||||
dumpToServer(headers, id, filePath, url, response, inputStream);
|
|
||||||
}
|
|
||||||
Map<String, Object> paramMap = Maps.newHashMap();
|
Map<String, Object> paramMap = Maps.newHashMap();
|
||||||
if ("Document".equals(api)) {
|
if ("Document".equals(api)) {
|
||||||
paramMap.put("key", "localUrl");
|
paramMap.put("key", "localUrl");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user