提交 174bbc22 authored 作者: zhouzhigang's avatar zhouzhigang

--no commit message

上级 dd1012c6
......@@ -86,7 +86,8 @@ public class FgCourseLibraryController {
GoodsForm form = new GoodsForm();
form.setId(oid);
form.setType(AllResourceTypeEnum.COURSE.getCode().toString());
if(fgOrderClient.isExistBuyGoods(form) != null && fgOrderClient.isExistBuyGoods(form).getData()) {//已购买
CallBack<Boolean> call = fgOrderClient.isExistBuyGoods(form);
if(call != null && call.getData() != null && call.getData()) {//已购买
vo.setIsbuy(1);
}else {
vo.setIsbuy(0);
......@@ -104,7 +105,9 @@ public class FgCourseLibraryController {
vo.setCommentNum(fgCommentNumAndScoreVo.getCommentNum());
vo.setResourceScore(fgCommentNumAndScoreVo.getResourceScore());
}
vo.setTimeSpeed(fgResourceManage.getSpeed(oid, oid, 9, redis.getMemberW().getId()));
if(redis.isExistMember()) {
vo.setTimeSpeed(fgResourceManage.getSpeed(oid, oid, 9, redis.getMemberW().getId()));
}
return CallBack.success(vo);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论