Explorar o código

增加下载cad文件接接口

dengsixing hai 1 ano
pai
achega
2d7b53c7be

+ 2 - 2
src/main/java/com/fdkankan/scene/service/impl/SceneEditInfoServiceImpl.java

@@ -683,8 +683,8 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
         ScenePlusExt scenePlusExt = scenePlusExtService.getScenePlusExtByPlusId(scenePlus.getId());
 
         String extName =  FileUtil.extName(file.getOriginalFilename());
-        if(!"dfx".equals(extName)){
-            throw new BusinessException(ErrorCode.FAILURE_CODE_7007.code(), ErrorCode.FAILURE_CODE_7007.formatMessage("dfx"));
+        if(!"dxf".equals(extName)){
+            throw new BusinessException(ErrorCode.FAILURE_CODE_7007.code(), ErrorCode.FAILURE_CODE_7007.formatMessage("dxf"));
         }
         String dfxPath = ConstantFilePath.SCENE_USER_PATH_V4 + UUID.randomUUID() + "." + extName;
         String floorplanUserPath = ConstantFilePath.SCENE_USER_PATH_V4 + UUID.randomUUID() + ".json";