|
@@ -11,6 +11,7 @@ import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.http.*;
|
|
import org.springframework.http.*;
|
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
+import org.springframework.util.ObjectUtils;
|
|
|
import org.springframework.web.client.RestTemplate;
|
|
import org.springframework.web.client.RestTemplate;
|
|
|
|
|
|
|
|
import java.io.ByteArrayOutputStream;
|
|
import java.io.ByteArrayOutputStream;
|
|
@@ -54,7 +55,7 @@ public class HuiTaiUploadImageComponents {
|
|
|
} catch (MalformedURLException e) {
|
|
} catch (MalformedURLException e) {
|
|
|
throw new SystemException("华泰文件上传路劲解析失败");
|
|
throw new SystemException("华泰文件上传路劲解析失败");
|
|
|
}
|
|
}
|
|
|
- String domain = u.getProtocol() + "://" + u.getAuthority();
|
|
|
|
|
|
|
+ String domain = u.getProtocol() + "://" + u.getAuthority();
|
|
|
String query = u.getQuery();
|
|
String query = u.getQuery();
|
|
|
String[] params = query.split("&");
|
|
String[] params = query.split("&");
|
|
|
String token = null;
|
|
String token = null;
|
|
@@ -64,6 +65,7 @@ public class HuiTaiUploadImageComponents {
|
|
|
token = pair[1];
|
|
token = pair[1];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
HuaTaiImageInitParamResponse initParamResponse = initParam(domain, token);
|
|
HuaTaiImageInitParamResponse initParamResponse = initParam(domain, token);
|
|
|
List<HuaTaiImageInitParamResponse.TypeSelectVosDTO.ChildrenDTO> childrenDTO = initParamResponse.getChildrenDTO();
|
|
List<HuaTaiImageInitParamResponse.TypeSelectVosDTO.ChildrenDTO> childrenDTO = initParamResponse.getChildrenDTO();
|
|
|
for (InsUploadImagesDto insUploadImagesDto : insUploadImagesDtos) {
|
|
for (InsUploadImagesDto insUploadImagesDto : insUploadImagesDtos) {
|