作者 yangfu

fix: 文章详情修改

@@ -327,7 +327,7 @@ func (l *SystemUpdateArticleLogic) getSections(req *types.SystemArticleUpdateReq @@ -327,7 +327,7 @@ func (l *SystemUpdateArticleLogic) getSections(req *types.SystemArticleUpdateReq
327 lo.ForEach(req.Section, func(item types.ArticleSection, index int) { 327 lo.ForEach(req.Section, func(item types.ArticleSection, index int) {
328 strList := strings.Split(item.Content, "\n") 328 strList := strings.Split(item.Content, "\n")
329 for key, value := range strList { 329 for key, value := range strList {
330 - if value == "" { 330 + if value == "" && item.ParagraphType != 2 {
331 continue 331 continue
332 } 332 }
333 section := domain.ArticleSection{ 333 section := domain.ArticleSection{