master
黄欣 5 years ago
parent 72c6be8262
commit 646323de49

@ -68,7 +68,7 @@ public class ArticleSerivceImpl implements ArticleSerive {
ajaxResult.setRetmsg("文章形式不可为空");
return ajaxResult;
}
if (StringUtils.isBlank(content)){
if (StringUtils.isBlank(content) && fileType == 0){
ajaxResult.setRetcode(AjaxResult.FAILED);
ajaxResult.setRetmsg("文章内容不可为空");
return ajaxResult;
@ -212,6 +212,7 @@ public class ArticleSerivceImpl implements ArticleSerive {
articleVo.setDescribe(article.getDescribe());
articleVo.setState(article.getState());
articleVo.setCreateDateTime(article.getCreateDateTime());
articleVo.setVideoUrl(article.getVideoUrl());
if (null != firstCategory ){
articleVo.setFirstCategoryName(firstCategory.getName());
articleVo.setFirstLevel(firstCategory.getLevel());

Loading…
Cancel
Save