dengsixing 4 months ago
parent
commit
d6f66c1fd2

+ 2 - 1
src/main/java/com/fdkankan/contro/mq/service/impl/BuildSceneServiceImpl.java

@@ -623,11 +623,12 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
 
 
     private Integer uploadFreespace(String num, String path, Map<String, String> map){
+        String floor0pngPath = "/results/floorplan/floor_0.png";
         String plyPath = path + "/results/laserData/cover/final_freespace.ply";
         String pngPath = path + "/results/laserData/cover/final_freespace.png";
         String infoJsonPath = path + "/results/laserData/cover/info.json";
         Integer hasAi = CommonStatus.NO.code().intValue();
-        if(FileUtil.exist(plyPath)){
+        if(FileUtil.exist(floor0pngPath) || FileUtil.exist(plyPath)){
             hasAi = CommonStatus.YES.code().intValue();
             map.put(plyPath, String.format(UploadFilePath.IMG_VIEW_PATH, num) + "cover/" + FileUtil.getName(plyPath));
         }