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

--no commit message

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