Commit fa9f5e9c authored by shiyu's avatar shiyu

getHomePageImage去除获取视频第一帧图片尺寸,有视频时type仍然需要传1

parent 70f28eb7
......@@ -111,9 +111,13 @@ public class MediaUtil {
if (image[0].contains("_")) {
homePageMap = getAspect(image[0]);
homePageMap.put("url", image[0]);
if (org.apache.commons.lang3.StringUtils.isNotBlank(videos)) {
homePageMap.put("type", 1);
} else {
homePageMap.put("type", 2);
}
}
}
/*if (org.apache.commons.lang3.StringUtils.isNotBlank(videos)) {
String[] videoImage = videos.split(";");
if (videoImage[0].contains(",")) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment