|
|
@ -1012,6 +1012,7 @@ public class IdcServiceImpl implements IdcService {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Response result = client.newCall(request).execute();
|
|
|
|
Response result = client.newCall(request).execute();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (MediaType.parse("application/force-download").equals(result.body().contentType())) {
|
|
|
|
if (MediaType.parse("application/force-download").equals(result.body().contentType())) {
|
|
|
|
try (InputStream inputStream = result.body().byteStream()) {
|
|
|
|
try (InputStream inputStream = result.body().byteStream()) {
|
|
|
|
String filePathSlash = filePath.substring(filePath.length() - 1).equals("/") ? "" : "/";
|
|
|
|
String filePathSlash = filePath.substring(filePath.length() - 1).equals("/") ? "" : "/";
|
|
|
|