From af6af3c571848843e6913742ebca01efccc5242f Mon Sep 17 00:00:00 2001 From: wuqifeng <540416539@qq.com> Date: Thu, 3 Sep 2026 23:45:26 +0800 Subject: [PATCH] fix: 修复播完环节后跨单元跳错下一环节的问题 --- lib/pages/section/bloc/section_bloc.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/pages/section/bloc/section_bloc.dart b/lib/pages/section/bloc/section_bloc.dart index 707fde1..a68522d 100644 --- a/lib/pages/section/bloc/section_bloc.dart +++ b/lib/pages/section/bloc/section_bloc.dart @@ -215,12 +215,10 @@ class SectionBloc extends Bloc { .toList(); } + ///查找当前unit内当前环节的下一个环节 + ///sortOrder是unit内编号,不能跨unit全局按sortOrder查找,否则会命中前一个unit的同序号环节 CourseSectionEntity? _findNextVisibleCourseSection( CourseSectionEntity currentSection) { - if (!UserUtil.isAppReviewAccount()) { - return findCourseSectionBySort(currentSection.sortOrder + 1); - } - final currentUnitSections = _courseSectionDatasMap[currentSection.courseUnitId]; final nextSections = currentUnitSections -- libgit2 0.22.2