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