作者 yangfu

Merge branch 'dev' into test

... ... @@ -43,7 +43,10 @@ func (l *MiniGetArticleDraftMeLogic) MiniGetArticleDraftMe(req *types.MiniArticl
var paragraphs = make([]types.Paragraph, 0)
lo.ForEach(draftInfo.Section, func(p *domain.ArticleSection, index int) {
paragraphs = append(paragraphs, core.NewTypesParagraph(p.ParagraphTemplate))
paragraphTemplate := core.NewTypesParagraph(p.ParagraphTemplate)
paragraphTemplate.Images = p.Images
paragraphTemplate.Text = p.Content
paragraphs = append(paragraphs, paragraphTemplate)
})
if len(paragraphs) == 0 && len(draftInfo.Content) > 0 {
... ...