|
|
@@ -77,11 +77,10 @@ public class AccessControlServiceImpl implements AccessControlService{
|
|
|
*/
|
|
|
byte[] imageData = info.getImageData();
|
|
|
if (null != imageData && imageData.length > 0) {
|
|
|
- ImageFile file = new ImageFile(information.get(0).getStuName(), imageData);
|
|
|
Result<FileInfoDTO> fileInfo = null;
|
|
|
try {
|
|
|
fileInfo = fileApi.upload(0L, new ByteArrayMultipartFile("file", information.get(0).getStuName() + ".jpg", "application/jpeg", imageData));
|
|
|
- filePath = fileInfo.getData().getAccessPath();
|
|
|
+ filePath = fileInfo.getData().getFullPath();
|
|
|
}catch (Exception ex) {
|
|
|
logger.error(ex.getMessage());
|
|
|
}
|