|
@@ -1574,7 +1574,7 @@ public class RunBuild {
|
|
|
componentModelUploadEntity.setThumStatus(1);
|
|
|
componentModelUploadEntity.setThumProgress(100);
|
|
|
if (FileUtil.exist(filePath + fileId + "_preview.jpg")) {
|
|
|
- componentModelUploadEntity.setThumPath(filePath + fileId + "_preview.jpg");
|
|
|
+ componentModelUploadEntity.setThumPath(filePath.replace(buildPath, "") + fileId + "_preview.jpg");
|
|
|
}
|
|
|
componentModelUploadService.updateById(componentModelUploadEntity);
|
|
|
redisUtil.setEx("componentCreateImgStatus:id:" + modelId, "done", 5, TimeUnit.MINUTES);
|
|
@@ -1621,7 +1621,7 @@ public class RunBuild {
|
|
|
modelUploadEntity.setThumStatus(1);
|
|
|
modelUploadEntity.setThumProgress(100);
|
|
|
if (FileUtil.exist(filePath + fileId + "_preview.jpg")) {
|
|
|
- modelUploadEntity.setThumPath(filePath + fileId + "_preview.jpg");
|
|
|
+ modelUploadEntity.setThumPath(filePath.replace(buildPath, "") + fileId + "_preview.jpg");
|
|
|
}
|
|
|
modelUploadService.updateById(modelUploadEntity);
|
|
|
redisUtil.setEx("createImgStatus:id:" + modelId, "done", 5, TimeUnit.MINUTES);
|
|
@@ -1663,7 +1663,7 @@ public class RunBuild {
|
|
|
modelUploadEntity.setThumProgress(100);
|
|
|
///web-shared/OneKeyDecorate/upload/1460791186728423424/
|
|
|
if (FileUtil.exist(filePath + fileId + "_preview.jpg")) {
|
|
|
- modelUploadEntity.setThumPath(filePath + fileId + "_preview.jpg");
|
|
|
+ modelUploadEntity.setThumPath(filePath.replace(buildPath, "") + fileId + "_preview.jpg");
|
|
|
}
|
|
|
modelUploadService.updateById(modelUploadEntity);
|
|
|
redisUtil.setEx("createImgStatus:id:" + modelId, "done", 5, TimeUnit.MINUTES);
|