|
|
@@ -2479,6 +2479,19 @@ public class FsUserCourseVideoServiceImpl extends ServiceImpl<FsUserCourseVideoM
|
|
|
FsUserCourseVideoDetailsVO fsUserCourseVideoDetailsVO = new FsUserCourseVideoDetailsVO();
|
|
|
BeanUtils.copyProperties(fsUserCourseVideo, fsUserCourseVideoDetailsVO);
|
|
|
|
|
|
+ // 默认展示横屏
|
|
|
+ if (StringUtils.isNotEmpty(fsUserCourseVideo.getFileKey())) {
|
|
|
+ FsVideoResource fsVideoResource = fsVideoResourceMapper.selectByFileKey(fsUserCourseVideo.getFileKey());
|
|
|
+ if (fsVideoResource != null) {
|
|
|
+ fsUserCourseVideoDetailsVO.setDisplayType(fsVideoResource.getDisplayType());
|
|
|
+ } else {
|
|
|
+ fsUserCourseVideoDetailsVO.setDisplayType("landscape");
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ fsUserCourseVideoDetailsVO.setDisplayType("landscape");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
//从配置中读取默认线路
|
|
|
String json = configService.selectConfigByKey("course.config");
|
|
|
CourseConfig config = JSONUtil.toBean(json, CourseConfig.class);
|
|
|
@@ -4589,9 +4602,9 @@ public class FsUserCourseVideoServiceImpl extends ServiceImpl<FsUserCourseVideoM
|
|
|
JsonNode originalNode = productIdToJsonNodeMap.get(validProduct.getProductId());
|
|
|
|
|
|
fsStoreProductScrm.setProductId(validProduct.getProductId());
|
|
|
- fsStoreProductScrm.setImages(validProduct.getImages() != null ? validProduct.getImages() :
|
|
|
+ fsStoreProductScrm.setImages(validProduct.getImage() != null ? validProduct.getImage() :
|
|
|
(originalNode != null ? originalNode.path("image").asText() : ""));
|
|
|
- fsStoreProductScrm.setImgUrl(validProduct.getImgUrl() != null ? validProduct.getImgUrl() :
|
|
|
+ fsStoreProductScrm.setImgUrl(validProduct.getSliderImage() != null ? validProduct.getSliderImage() :
|
|
|
(originalNode != null ? originalNode.path("imgUrl").asText() : ""));
|
|
|
fsStoreProductScrm.setBarCode(validProduct.getBarCode());
|
|
|
fsStoreProductScrm.setPrice(validProduct.getPrice());
|