e93fa3ef by xiaojie

【数据资产】

1、图片上传
1 parent 39a68f93
......@@ -120,7 +120,7 @@ public class DataPortServiceImpl implements DataPortService {
throw new CsbrSystemException(SystemError.DATA_GET_ERROR, respJson.getString("message"));
}
} else {
String fileName = "身份凭证.png";
String fileName = String.format("%s.png", entity.getTenantName());
MultipartFile image = new MockMultipartFile(fileName, fileName, "application/octet-stream", resourceByteArray);
String url = (String) daopCommonFeign.uploadFile(image, fileName).getData();
log.info("======url======, {}", url);
......@@ -188,7 +188,7 @@ public class DataPortServiceImpl implements DataPortService {
throw new CsbrSystemException(SystemError.DATA_GET_ERROR, respJson.getString("message"));
}
} else {
String fileName = "身份凭证.png";
String fileName = String.format("%s.png", entity.getTenantName());
MultipartFile image = new MockMultipartFile(fileName, fileName, "application/octet-stream", resourceByteArray);
String url = (String) daopCommonFeign.uploadFile(image, fileName).getData();
log.info("======url======, {}", url);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!