| | |
| | | } |
| | | } |
| | | classInfoVo.setCourseList(courseList); |
| | | List<ExerciseVideo> stuCourseOfVideoList = new ArrayList<>(); |
| | | ExerciseVideo video = new ExerciseVideo(); |
| | | video.setVideoUrl("https://media.w3.org/2010/05/sintel/trailer.mp4"); |
| | | video.setVideoCoverImgUrl("https://img1.baidu.com/it/u=1614146743,3691458181&fm=253&fmt=auto&app=120&f=JPEG?w=605&h=383"); |
| | | video.setVideoName("课后练习足球课"); |
| | | stuCourseOfVideoList.add(video); |
| | | |
| | | ExerciseVideo exerciseVideo = new ExerciseVideo(); |
| | | exerciseVideo.setVideoUrl("https://media.w3.org/2010/05/sintel/trailer.mp4"); |
| | | exerciseVideo.setVideoCoverImgUrl("https://img0.baidu.com/it/u=1492570361,4260963468&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500"); |
| | | exerciseVideo.setVideoName("篮球课"); |
| | | stuCourseOfVideoList.add(exerciseVideo); |
| | | List<ExerciseVideo> stuCourseOfVideoList = voclClient.getStuCourseOfVideoList(coursePackIds); |
| | | System.out.println(stuCourseOfVideoList); |
| | | classInfoVo.setExerciseVideoList(stuCourseOfVideoList); |
| | | }else { |
| | | classInfoVo.setIsThere(2); |
| | |
| | | List<RechargeCentVo> centVos = new ArrayList<>(); |
| | | TAppUser tAppUser = this.baseMapper.selectById(appUserId); |
| | | List<Map<String, Object>> rechargeConfig = reconMapper.getRechargeConfig(); |
| | | System.out.println(rechargeConfig); |
| | | if (rechargeConfig.size() > 0 ){ |
| | | for (Map<String, Object> stringObjectMap : rechargeConfig) { |
| | | RechargeCentVo vo = new RechargeCentVo(); |
| | | vo.setChargeId((Integer) stringObjectMap.get("money")); |
| | | vo.setAmount(""+stringObjectMap.get("money")); |
| | | Double money = (Double) stringObjectMap.get("money"); |
| | | vo.setAmount(BigDecimal.valueOf(money) ); |
| | | if (tAppUser.getIsVip() == 1){ |
| | | vo.setWpGold(stringObjectMap.get("MemberCoins")+""); |
| | | vo.setWpGold((Integer) stringObjectMap.get("MemberCoins")); |
| | | }else { |
| | | vo.setWpGold(stringObjectMap.get("usersCoins")+""); |
| | | vo.setWpGold((Integer) stringObjectMap.get("usersCoins")); |
| | | } |
| | | centVos.add(vo); |
| | | } |