|
@@ -24,6 +24,9 @@ public class ImageSeviceImpl implements ImageSevice {
|
|
|
|
|
|
@Value("${image.path}")
|
|
|
private String path;
|
|
|
+
|
|
|
+ @Value("${image.prefix}")
|
|
|
+ private String prefixPath;
|
|
|
@Autowired
|
|
|
private ImageMapper imageMapper;
|
|
|
|
|
@@ -49,7 +52,7 @@ public class ImageSeviceImpl implements ImageSevice {
|
|
|
} catch (IOException e) {
|
|
|
throw new RuntimeException(e);
|
|
|
}
|
|
|
- imageInfoDO.setFilePath(imagePath.replace(path,"/"));
|
|
|
+ imageInfoDO.setFilePath(imagePath.replace(prefixPath,"/"));
|
|
|
imageInfoDO.setUpdaterId(UserUtils.getLoginUser().getUserId());
|
|
|
imageInfoDO.setCreatorId(UserUtils.getLoginUser().getUserId());
|
|
|
imageInfoDO.setIsvalid(1);
|