|
@@ -225,14 +225,14 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(prodImgTempPath)) {
|
|
|
File prodImgTemp = new File(prodImgTempPath);
|
|
|
- String prodImgPath = File.separator + "product" + File.separator + "prodImg" + File.separator + productInfoDto.getCustomCode() + File.separator + prodImgTemp.getName();
|
|
|
+ String prodImgPath = String.format("/product/prodImg/%s/%s", productInfoDto.getCustomCode(), prodImgTemp.getName());
|
|
|
|
|
|
productInfoDto.setProdImgPath(prodImgPath);
|
|
|
}
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(prodFileTempPath)) {
|
|
|
File prodFileTemp = new File(prodFileTempPath);
|
|
|
- String prodFilePath = File.separator + "product" + File.separator + "prodFile" + File.separator + productInfoDto.getCustomCode() + File.separator + prodFileTemp.getName();
|
|
|
+ String prodFilePath = String.format("/product/prodFile/%s/%s", productInfoDto.getCustomCode(), prodFileTemp.getName());
|
|
|
|
|
|
productInfoDto.setProdFilePath(prodFilePath);
|
|
|
}
|