Showing
1 changed file
with
3 additions
and
2 deletions
@@ -1744,8 +1744,9 @@ public class GrassArticleServiceImpl implements IGrassArticleService { | @@ -1744,8 +1744,9 @@ public class GrassArticleServiceImpl implements IGrassArticleService { | ||
1744 | } | 1744 | } |
1745 | if("coverImage".equals(content.getTemplateKey())){ | 1745 | if("coverImage".equals(content.getTemplateKey())){ |
1746 | JSONObject data = JSON.parseObject(content.getContentData()); | 1746 | JSONObject data = JSON.parseObject(content.getContentData()); |
1747 | - String coverImage = JSON.parseObject(data.getString("data")).getString("coverImage"); | ||
1748 | - coverImageMap.put(content.getArticleId(), coverImage); | 1747 | + String src = JSON.parseObject(data.getString("data")).getString("src"); |
1748 | + src = StringUtils.isEmpty(src) ? "" : src.substring(0, src.indexOf("?")); | ||
1749 | + coverImageMap.put(content.getArticleId(), src); | ||
1749 | } | 1750 | } |
1750 | 1751 | ||
1751 | }); | 1752 | }); |
-
Please register or login to post a comment