lyhzzz 2 лет назад
Родитель
Сommit
eb1176fc43

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

@@ -111,12 +111,12 @@ public class ModelServiceImpl extends ServiceImpl<IModelMapper, Model> implement
 
         if(fileList.size() != 1){
             setCreateStatus(model,-1);
-            throw new BusinessException(ResultCode.UPLOAD_FILE_TYPE_ERROR);
+            throw new BusinessException(ResultCode.UPLOAD_FILE_MSG_ERROR);
         }
         File file1 = fileList.get(0);
         if(file1 == null){
             setCreateStatus(model,-1);
-            throw new BusinessException(ResultCode.UPLOAD_FILE_TYPE_ERROR);
+            throw new BusinessException(ResultCode.UPLOAD_FILE_OBJ_ERROR);
         }
         if(com.fdkankan.fusion.common.util.StringUtils.isChinese(file1.getName())){
             setCreateStatus(model,-1);