正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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{ |
-
请 注册 或 登录 后发表评论