提交 739f1779 authored 作者: zhouzhigang's avatar zhouzhigang

--no commit message

上级 a3c6f061
...@@ -96,4 +96,6 @@ public class FgVideoLibraryVO { ...@@ -96,4 +96,6 @@ public class FgVideoLibraryVO {
private Integer resourceScore; private Integer resourceScore;
@ApiModelProperty("用户最近一次浏览时长") @ApiModelProperty("用户最近一次浏览时长")
private Integer timeSpeed; private Integer timeSpeed;
@ApiModelProperty("售价选项 0 免费,1收费")
private Integer priceOption;
} }
...@@ -91,7 +91,9 @@ public class FgCourseLibraryController { ...@@ -91,7 +91,9 @@ public class FgCourseLibraryController {
}else { }else {
vo.setIsbuy(0); vo.setIsbuy(0);
} }
if(vo.getPriceOption().intValue() == 0) {//若是免费则置为已购买
vo.setIsbuy(1);
}
// 获取评分与评论数 // 获取评分与评论数
FgQueryCommentForm fgQueryCommentForm = new FgQueryCommentForm(); FgQueryCommentForm fgQueryCommentForm = new FgQueryCommentForm();
fgQueryCommentForm.setResourceId(oid); fgQueryCommentForm.setResourceId(oid);
......
...@@ -124,6 +124,9 @@ public class FgVideoLibraryController { ...@@ -124,6 +124,9 @@ public class FgVideoLibraryController {
}else { }else {
vo.setIsBuy(0); vo.setIsBuy(0);
} }
if(vo.getPriceOption().intValue() == 0) {//若是免费则置为已购买
vo.setIsBuy(1);
}
if(courseId != null) { if(courseId != null) {
vo.setTimeSpeed(fgResourceManage.getSpeed(courseId, oid, AllResourceTypeEnum.COURSE.getCode(), redis.getMemberW().getId())); vo.setTimeSpeed(fgResourceManage.getSpeed(courseId, oid, AllResourceTypeEnum.COURSE.getCode(), redis.getMemberW().getId()));
}else { }else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论