|
@@ -83,7 +83,7 @@ public class FileController extends BaseController {
|
|
|
return fail("文件上传失败");
|
|
|
}
|
|
|
try {
|
|
|
- HttpResponse response = HttpClient(fileEntity.getFilePath(),fileEntity.getId());
|
|
|
+ HttpResponse response = HttpClient(fileEntity.getFilePath(),fileEntity.getId(),fileEntity.getCallWord());
|
|
|
if (response.getStatusLine().getStatusCode() == 200){
|
|
|
fileEntity.setFileStatus("2");
|
|
|
fileEntity.setUpdateTime(DateUtil.now());
|
|
@@ -189,9 +189,9 @@ public class FileController extends BaseController {
|
|
|
return success(null,"修改成功");
|
|
|
}
|
|
|
|
|
|
- public static HttpResponse HttpClient(String filePath, String fileId) {
|
|
|
+ public static HttpResponse HttpClient(String filePath, String fileId, String callWord) {
|
|
|
CloseableHttpClient httpclient = HttpClients.createDefault();
|
|
|
- HttpPost httpPost = new HttpPost("http://10.113.248.201:9999/api/uploadfile/?file_uuid="+fileId);
|
|
|
+ HttpPost httpPost = new HttpPost("http://10.113.248.201:9999/api/uploadfile/?file_uuid="+fileId+"&tips_word="+callWord);
|
|
|
MultipartEntityBuilder builder = MultipartEntityBuilder.create();
|
|
|
builder.addBinaryBody("file", new File(filePath));
|
|
|
HttpEntity multipart = builder.build();
|