Commit fa9f5e9c authored by shiyu's avatar shiyu

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

parent 70f28eb7
...@@ -111,7 +111,11 @@ public class MediaUtil { ...@@ -111,7 +111,11 @@ public class MediaUtil {
if (image[0].contains("_")) { if (image[0].contains("_")) {
homePageMap = getAspect(image[0]); homePageMap = getAspect(image[0]);
homePageMap.put("url", image[0]); homePageMap.put("url", image[0]);
homePageMap.put("type", 2); 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)) { /*if (org.apache.commons.lang3.StringUtils.isNotBlank(videos)) {
......
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