|
@@ -1,6 +1,7 @@
|
|
|
package com.fdkk.sxz.webApi.controller;
|
|
|
|
|
|
import cn.hutool.core.io.FileUtil;
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
@@ -800,9 +801,11 @@ public class ManagerController extends BaseController {
|
|
|
renovationPartsDetailEntity.getImg().replace("/temp/", "/models/").replace(prefix, ""));
|
|
|
uploadToOssUtil.copyTo4dTjw(renovationPartsDetailEntity.getPath().replace(prefix, ""),
|
|
|
renovationPartsDetailEntity.getPath().replace("/temp/", "/models/").replace(prefix, ""));
|
|
|
-
|
|
|
- uploadToOssUtil.copyTo4dTjw(renovationPartsDetailEntity.getMviewPath().replace(prefix, ""),
|
|
|
- renovationPartsDetailEntity.getMviewPath().replace("/temp/", "/models/").replace(prefix, ""));
|
|
|
+ if (ObjectUtil.isNotNull(renovationPartsDetailEntity.getMviewPath())){
|
|
|
+ uploadToOssUtil.copyTo4dTjw(renovationPartsDetailEntity.getMviewPath().replace(prefix, ""),
|
|
|
+ renovationPartsDetailEntity.getMviewPath().replace("/temp/", "/models/").replace(prefix, ""));
|
|
|
+ renovationPartsDetailEntity.setMviewPath(renovationPartsDetailEntity.getMviewPath().replace("/temp/", "/models/"));
|
|
|
+ }
|
|
|
|
|
|
uploadToOssUtil.deleteTo4dTjw(renovationPartsDetailEntity.getImg().replace(prefix, ""));
|
|
|
uploadToOssUtil.deleteTo4dTjw(renovationPartsDetailEntity.getPath().replace(prefix, ""));
|
|
@@ -811,7 +814,6 @@ public class ManagerController extends BaseController {
|
|
|
renovationPartsDetailEntity.setImg(renovationPartsDetailEntity.getImg().replace("/temp/", "/models/"));
|
|
|
renovationPartsDetailEntity.setHighImg(renovationPartsDetailEntity.getHighImg().replace("/temp/", "/models/"));
|
|
|
renovationPartsDetailEntity.setPath(renovationPartsDetailEntity.getPath().replace("/temp/", "/models/"));
|
|
|
- renovationPartsDetailEntity.setMviewPath(renovationPartsDetailEntity.getMviewPath().replace("/temp/", "/models/"));
|
|
|
|
|
|
}
|
|
|
|