lyhzzz 3 年之前
父节点
当前提交
c5ff4ab12a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/fdkankan/fusion/service/impl/ModelServiceImpl.java

+ 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);