瀏覽代碼

修改场景logo构建逻辑

tianboguang 2 年之前
父節點
當前提交
367c296866
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/main/java/com/fdkankan/contro/mq/service/impl/BuildSceneServiceImpl.java

+ 6 - 0
src/main/java/com/fdkankan/contro/mq/service/impl/BuildSceneServiceImpl.java

@@ -442,6 +442,8 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
                 fYunFileService.uploadFile(localLogoPath, userViewPath + "loadingLogo-user.png");
                 fYunFileService.uploadFile(localLogoPath, userViewPath + "loadingLogo-user.png");
                 sceneJson.setLoadingLogo("user");
                 sceneJson.setLoadingLogo("user");
                 sceneJson.setLoadingLogoFile("loadingLogo-user.png");
                 sceneJson.setLoadingLogoFile("loadingLogo-user.png");
+                sceneEditInfo.setLoadingLogo("user");
+                sceneEditInfo.setLoadingLogoFile("floorLogo-user.png");
             }
             }
             if (StrUtil.isNotEmpty(company.getFloorLogo())) {
             if (StrUtil.isNotEmpty(company.getFloorLogo())) {
                 localLogoPath = ConstantFilePath.AGENT_PATH + company.getFloorLogo().substring(company.getFloorLogo().lastIndexOf("//") + 1);
                 localLogoPath = ConstantFilePath.AGENT_PATH + company.getFloorLogo().substring(company.getFloorLogo().lastIndexOf("//") + 1);
@@ -449,8 +451,12 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
                 fYunFileService.uploadFile(localLogoPath, userViewPath + "floorLogo-user.png");
                 fYunFileService.uploadFile(localLogoPath, userViewPath + "floorLogo-user.png");
                 sceneJson.setFloorLogo("user");
                 sceneJson.setFloorLogo("user");
                 sceneJson.setFloorLogoFile("floorLogo-user.png");
                 sceneJson.setFloorLogoFile("floorLogo-user.png");
+
+                sceneEditInfo.setFloorLogo("user");
+                sceneEditInfo.setFloorLogoFile("floorLogo-user.png");
             }
             }
             if(!ObjectUtils.isEmpty(localLogoPath)){
             if(!ObjectUtils.isEmpty(localLogoPath)){
+                sceneEditInfoService.updateById(sceneEditInfo);
                 FileUtils.deleteFile(localLogoPath);
                 FileUtils.deleteFile(localLogoPath);
             }
             }
         }
         }