lyhzzz 3 years ago
parent
commit
c5ff4ab12a

+ 1 - 1
src/main/java/com/fdkankan/fusion/service/impl/ModelServiceImpl.java

@@ -80,7 +80,7 @@ public class ModelServiceImpl extends ServiceImpl<IModelMapper, Model> implement
             throw new BusinessException(ResultCode.UPLOAD_FILE_NO_EXIST);
         }
         if(com.fdkankan.fusion.common.util.StringUtils.isChinese(fileName)){
-            throw new BusinessException(ResultCode.UPLOAD_FILE_TYPE_ERROR);
+            throw new BusinessException(ResultCode.UPLOAD_FILE_CHINA_NAME);
         }
         if(!fileName.toLowerCase().contains("zip") && !fileName.toLowerCase().contains("rar")){
             throw new BusinessException(ResultCode.UPLOAD_FILE_TYPE_ERROR);