作者 yangfu

fix: 草稿箱修改

@@ -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 {