浏览代码

Merge branch 'feature-sg-20230615-dsx' into test

dsx 2 年之前
父节点
当前提交
8654b49553
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/main/java/com/fdkankan/contro/mq/service/impl/CommonServiceImpl.java

+ 4 - 4
src/main/java/com/fdkankan/contro/mq/service/impl/CommonServiceImpl.java

@@ -179,11 +179,11 @@ public class CommonServiceImpl implements ICommonService {
         }
         JSONObject json = FloorPlanUserUtil.createFloorPlanUserJson(floorPlanCardFilePath);
         if(Objects.isNull(json)){
-            log.error("生成floorplan.json失败,cadPath:", floorPlanCardFilePath);
-            throw new Exception("生成floorplan.json失败,cadPath:" + floorPlanCardFilePath);
+            log.warn("生成floorplan.json失败,cadPath:{}", floorPlanCardFilePath);
+            return;
         }
-        String hourseTypeJsonPath = String.format(UploadFilePath.DATA_VIEW_PATH, num) + "floorplan.json";
-        fYunFileServiceInterface.uploadFile(json.toJSONString().getBytes(), hourseTypeJsonPath);
+        String floorplanJsonPath = String.format(UploadFilePath.DATA_VIEW_PATH, num) + "floorplan.json";
+        fYunFileServiceInterface.uploadFile(json.toJSONString().getBytes(), floorplanJsonPath);
     }
 
     @Override