Переглянути джерело

Merge branch 'feature-v4.12.0-dsx' into test

dengsixing 1 рік тому
батько
коміт
0aef7fa3f8

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

@@ -693,8 +693,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";