Commit 8c4d1b3c authored by 韩桐桐's avatar 韩桐桐

fix(jg):使用登记表固定上传路径为upload/common/useregistrationformfiles/xxx.xx

parent f6de5d87
...@@ -1210,7 +1210,8 @@ public class CommonServiceImpl implements ICommonService { ...@@ -1210,7 +1210,8 @@ public class CommonServiceImpl implements ICommonService {
Assert.notNull(file, "文件不能为空"); Assert.notNull(file, "文件不能为空");
MultipartFile multipartFile = new ByteArrayMultipartFile("file", "file.pdf", "application/pdf", file2byte(file)); MultipartFile multipartFile = new ByteArrayMultipartFile("file", "file.pdf", "application/pdf", file2byte(file));
FeignClientResult<Map<String, String>> result = Systemctl.fileStorageClient.updateCommonFile(multipartFile); // 返回路径 : upload/common/useregistrationformfiles/xxx.xx
FeignClientResult<Map<String, String>> result = Systemctl.fileStorageClient.updateCommonFileFree(multipartFile, "useRegistrationFormFiles");
String urlString = ""; String urlString = "";
if (result != null) { if (result != null) {
for (String s : result.getResult().keySet()) { for (String s : result.getResult().keySet()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment