|
|
@ -227,7 +227,7 @@ public class ArticleServiceImpl extends BaseServiceImpl<ArticleDao, ArticleEntit |
|
|
|
if (DraftConstant.TEXT.equals(fromDTO.getContentList().get(i).getContentType())) { |
|
|
|
content = fromDTO.getContentList().get(i).getContent(); |
|
|
|
if (content.length() > DraftConstant.PREVIEW_CONTENT_MAX_LENGTH) { |
|
|
|
content = content.substring(NumConstant.ZERO, DraftConstant.PREVIEW_CONTENT_MAX_LENGTH); |
|
|
|
content = content.substring(NumConstant.ZERO, DraftConstant.PREVIEW_CONTENT_MAX_LENGTH).concat(DraftConstant.PREVIEW_CONTENT_MORE); |
|
|
|
} |
|
|
|
break; |
|
|
|
} |
|
|
|