Authored by 张帅

优化

... ... @@ -302,7 +302,7 @@ public class GrassArticleServiceImpl implements IGrassArticleService {
List<GrassArticleBlock> blockList = grassArticleBlockDao.selectByArticleId(articleId);
Map<String, Future<JSONObject>> map = Maps.newConcurrentMap();
for (GrassArticleBlock block : blockList) {
if (block.getTemplateKey().equals("text")) {
if (!block.getTemplateKey().equals("image")) {
continue;
}
JSONObject object = JSONObject.parseObject(block.getContentData());
... ... @@ -314,7 +314,7 @@ public class GrassArticleServiceImpl implements IGrassArticleService {
}
List<GrassArticleBlock> needUpdateBlocks = Lists.newArrayList();
for (GrassArticleBlock block : blockList) {
if (block.getTemplateKey().equals("text")) {
if (!block.getTemplateKey().equals("image")) {
continue;
}
JSONObject object = JSONObject.parseObject(block.getContentData());
... ...