Authored by chenly5

封面图bug修复

@@ -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 });