Browse Source

fix bird temp>models

xiewenjie 3 years ago
parent
commit
8b15b6e0ef

+ 1 - 1
sxz-core/src/main/java/com/fdkk/sxz/webApi/controller/ManagerController.java

@@ -710,7 +710,7 @@ public class ManagerController extends BaseController {
                         renovationPartsDetailEntity.setPath(renovationPartsDetailEntity.getPath().replace("/temp/", "/models/"));
                     }
 
-                    if (ObjectUtil.isNotNull(renovationPartsDetailEntity.getBirdPath()) && renovationPartsDetailEntity.getPath().contains("temp")) {
+                    if (ObjectUtil.isNotNull(renovationPartsDetailEntity.getBirdPath()) && renovationPartsDetailEntity.getBirdPath().contains("temp")) {
                         uploadToOssUtil.copyTo4dTjw(renovationPartsDetailEntity.getBirdPath().replace(prefix, ""),
                                 renovationPartsDetailEntity.getBirdPath().replace("/temp/", "/models/").replace(prefix, ""));
                         uploadToOssUtil.deleteTo4dTjw(renovationPartsDetailEntity.getBirdPath().replace(prefix, ""));