解决点击章节时我的见解undefined

This commit is contained in:
wuchunlei
2025-04-21 11:35:15 +08:00
parent 67a261aa46
commit 5bc1200388
2 changed files with 8 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ public class CourseCatalogueChapterServiceImpl extends ServiceImpl<CourseCatalog
flag.put("current",getCurrentVideo(chapterId));
List<UserCourseBuyEntity> userCourseBuyEntities = userCourseBuyDao.selectList(new LambdaQueryWrapper<UserCourseBuyEntity>().eq(UserCourseBuyEntity::getUserId, ShiroUtils.getUId()).eq(UserCourseBuyEntity::getCatalogueId, byId.getCatalogueId()));
if (userCourseBuyEntities.size()==1){
if (userCourseBuyEntities.size()>0){
flag.put("buy",userCourseBuyEntities.get(0));
}