Ver código fonte

修改场景logo构建逻辑

tianboguang 2 anos atrás
pai
commit
d1d3d03d4a

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

@@ -435,11 +435,13 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
 
         if(!ObjectUtils.isEmpty(company)){
             String userViewPath = String.format(UploadFilePath.USER_VIEW_PATH, num);
+            String userEditPath = String.format(UploadFilePath.USER_EDIT_PATH, num);
             String localLogoPath = null;
             if (StrUtil.isNotEmpty(company.getTopLogo())) {
                 localLogoPath = ConstantFilePath.AGENT_PATH + company.getTopLogo().substring(company.getTopLogo().lastIndexOf("//") + 1);
                 HttpUtil.downloadFile(company.getTopLogo(), localLogoPath);
                 fYunFileService.uploadFile(localLogoPath, userViewPath + "loadingLogo-user.png");
+                fYunFileService.uploadFile(localLogoPath, userEditPath + "loadingLogo-user.png");
                 sceneJson.setLoadingLogo("user");
                 sceneJson.setLoadingLogoFile("loadingLogo-user.png");
                 sceneEditInfo.setLoadingLogo("user");
@@ -449,6 +451,7 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
                 localLogoPath = ConstantFilePath.AGENT_PATH + company.getFloorLogo().substring(company.getFloorLogo().lastIndexOf("//") + 1);
                 HttpUtil.downloadFile(company.getFloorLogo(), localLogoPath);
                 fYunFileService.uploadFile(localLogoPath, userViewPath + "floorLogo-user.png");
+                fYunFileService.uploadFile(localLogoPath, userEditPath + "floorLogo-user.png");
                 sceneJson.setFloorLogo("user");
                 sceneJson.setFloorLogoFile("floorLogo-user.png");