无关风月
2024-11-11 89294905b79283bcab3b24e36ff56e535d8b4884
xinquan-modules/xinquan-course/src/main/java/com/xinquan/course/controller/client/ClientCourseController.java
@@ -623,6 +623,7 @@
        Course byId = courseService.getById(id);
        ClientCourseVO clientCourseVO = new ClientCourseVO();
        BeanUtils.copyProperties(byId, clientCourseVO);
        clientCourseVO.setIsBuy(2);
        List<AppUser> data = remoteAppUserService.getUserByCourseId(id).getData();
        if (byId.getChargeType()==1 && tokenService.getLoginUser()==null){
            if (data!=null){
@@ -716,7 +717,7 @@
            }
        }
        clientCourseVO.setList(page);
        clientCourseVO.setIsBuy(2);
        // 查询推荐课程
        List<Course> list = courseService.lambdaQuery().eq(Course::getCateId, byId.getCateId())
                .eq(Course::getCourseType,1)