正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
@@ -43,7 +43,10 @@ func (l *MiniGetArticleDraftMeLogic) MiniGetArticleDraftMe(req *types.MiniArticl | @@ -43,7 +43,10 @@ func (l *MiniGetArticleDraftMeLogic) MiniGetArticleDraftMe(req *types.MiniArticl | ||
43 | 43 | ||
44 | var paragraphs = make([]types.Paragraph, 0) | 44 | var paragraphs = make([]types.Paragraph, 0) |
45 | lo.ForEach(draftInfo.Section, func(p *domain.ArticleSection, index int) { | 45 | lo.ForEach(draftInfo.Section, func(p *domain.ArticleSection, index int) { |
46 | - paragraphs = append(paragraphs, core.NewTypesParagraph(p.ParagraphTemplate)) | 46 | + paragraphTemplate := core.NewTypesParagraph(p.ParagraphTemplate) |
47 | + paragraphTemplate.Images = p.Images | ||
48 | + paragraphTemplate.Text = p.Content | ||
49 | + paragraphs = append(paragraphs, paragraphTemplate) | ||
47 | }) | 50 | }) |
48 | 51 | ||
49 | if len(paragraphs) == 0 && len(draftInfo.Content) > 0 { | 52 | if len(paragraphs) == 0 && len(draftInfo.Content) > 0 { |
-
请 注册 或 登录 后发表评论