|
@@ -15,7 +15,7 @@ import org.springframework.util.MultiValueMap;
|
|
import org.springframework.web.client.RestTemplate;
|
|
import org.springframework.web.client.RestTemplate;
|
|
|
|
|
|
import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
|
|
import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
|
|
-import cn.com.qmth.examcloud.api.commons.exchange.FormFileDataPart;
|
|
|
|
|
|
+import cn.com.qmth.examcloud.api.commons.exchange.FormFilePart;
|
|
import cn.com.qmth.examcloud.api.commons.exchange.FormRequest;
|
|
import cn.com.qmth.examcloud.api.commons.exchange.FormRequest;
|
|
import cn.com.qmth.examcloud.api.commons.exchange.JsonSerializable;
|
|
import cn.com.qmth.examcloud.api.commons.exchange.JsonSerializable;
|
|
import cn.com.qmth.examcloud.commons.exception.StatusException;
|
|
import cn.com.qmth.examcloud.commons.exception.StatusException;
|
|
@@ -277,10 +277,10 @@ public abstract class CloudClientSupport {
|
|
MultiValueMap<String, Object> params = new LinkedMultiValueMap<>();
|
|
MultiValueMap<String, Object> params = new LinkedMultiValueMap<>();
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|
|
HttpHeaders httpHeaders = new HttpHeaders();
|
|
|
|
|
|
- List<FormFileDataPart> fileDataPartList = req.getFileDataPartList();
|
|
|
|
- for (FormFileDataPart fileDataPart : fileDataPartList) {
|
|
|
|
- FileSystemResource resource = new FileSystemResource(fileDataPart.getFile());
|
|
|
|
- params.add(fileDataPart.getParamName(), resource);
|
|
|
|
|
|
+ List<FormFilePart> formFilePartList = req.getFormFilePartList();
|
|
|
|
+ for (FormFilePart part : formFilePartList) {
|
|
|
|
+ FileSystemResource resource = new FileSystemResource(part.getFile());
|
|
|
|
+ params.add(part.getParamName(), resource);
|
|
}
|
|
}
|
|
|
|
|
|
String json = JsonUtil.toJson(req);
|
|
String json = JsonUtil.toJson(req);
|