...
|
...
|
@@ -73,14 +73,17 @@ public class PublicArticleBlockService { |
|
|
publicArticleBlockRepository.save(targetObject);
|
|
|
// 更新 public_article.cover_img
|
|
|
if (targetObject.getOrderBy() == 0) {
|
|
|
try {
|
|
|
if (targetObject.getContentData() != null) {
|
|
|
publicArticleRepository.updateCoverImgByArticleIdAndArticleTypes(targetObject.getContentData(), targetObject.getArticleId(), ServiceConstant.articleTypes);
|
|
|
}
|
|
|
/*try {
|
|
|
Map map = ContentConvertUtil.jsonString2Map(targetObject.getContentData());
|
|
|
String coverImg = (String) map.get("url");
|
|
|
if (coverImg != null)
|
|
|
publicArticleRepository.updateCoverImgByArticleIdAndArticleTypes(coverImg, targetObject.getArticleId(), ServiceConstant.articleTypes);
|
|
|
} catch (Exception e) {
|
|
|
log.error("update public_article.cover_img goes error with exception {}", e);
|
|
|
}
|
|
|
}*/
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|