...
|
...
|
@@ -245,7 +245,6 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
}
|
|
|
|
|
|
try {
|
|
|
|
|
|
List<GrassArticleBlock> contentList = buildArticleBlock(urls, article.getId(), req);
|
|
|
grassArticleBlockDao.insertArticleContents(contentList);
|
|
|
updateArticleImageSize(article.getId());
|
...
|
...
|
@@ -379,9 +378,14 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
break;
|
|
|
case BLOCK_VIDEO:
|
|
|
String[] urls = StringUtils.split(data,",");
|
|
|
dataObject.put("coverUrl", urls[0]);
|
|
|
dataObject.put("videoUrl", urls[1]);
|
|
|
dataObject.put("fileId", urls[2]);
|
|
|
if(urls.length == 3){
|
|
|
dataObject.put("coverUrl", urls[0]);
|
|
|
dataObject.put("videoUrl", urls[1]);
|
|
|
dataObject.put("fileId", urls[2]);
|
|
|
}else {
|
|
|
dataObject.put("videoUrl", urls[0]);
|
|
|
dataObject.put("fileId", urls[1]);
|
|
|
}
|
|
|
break;
|
|
|
case BLOCK_COVER:
|
|
|
String coverurl = convertImageUrlWithDefault(data);
|
...
|
...
|
|