Showing
1 changed file
with
2 additions
and
2 deletions
@@ -1378,7 +1378,7 @@ public class GrassArticleServiceImpl implements IGrassArticleService{ | @@ -1378,7 +1378,7 @@ public class GrassArticleServiceImpl implements IGrassArticleService{ | ||
1378 | contentOrder++; | 1378 | contentOrder++; |
1379 | contentList.add(content); | 1379 | contentList.add(content); |
1380 | } | 1380 | } |
1381 | - if(StringUtils.isNotEmpty(req.getContent())){ | 1381 | + if(StringUtils.isNotEmpty(req.getContent()) && 3!=req.getSort()){ |
1382 | GrassArticleBlock content = new GrassArticleBlock(); | 1382 | GrassArticleBlock content = new GrassArticleBlock(); |
1383 | content.setArticleId(articleId); | 1383 | content.setArticleId(articleId); |
1384 | content.setContentData(getBlock(BLOCK_TEXT, req.getContent())); | 1384 | content.setContentData(getBlock(BLOCK_TEXT, req.getContent())); |
@@ -1388,7 +1388,7 @@ public class GrassArticleServiceImpl implements IGrassArticleService{ | @@ -1388,7 +1388,7 @@ public class GrassArticleServiceImpl implements IGrassArticleService{ | ||
1388 | contentList.add(content); | 1388 | contentList.add(content); |
1389 | contentOrder++; | 1389 | contentOrder++; |
1390 | } | 1390 | } |
1391 | - if(StringUtils.isNotEmpty(req.getActionUrl()) && req.getSort()==3){ | 1391 | + if(StringUtils.isNotEmpty(req.getActionUrl()) && 3==req.getSort()){ |
1392 | GrassArticleBlock content = new GrassArticleBlock(); | 1392 | GrassArticleBlock content = new GrassArticleBlock(); |
1393 | content.setArticleId(articleId); | 1393 | content.setArticleId(articleId); |
1394 | content.setContentData(getBlock(BLOCK_LINK, req.getActionUrl())); | 1394 | content.setContentData(getBlock(BLOCK_LINK, req.getActionUrl())); |
-
Please register or login to post a comment