Forráskód Böngészése

修复直播课进入高亮课程需求

Pq 3 éve
szülő
commit
13c9453d30

+ 1 - 1
student/src/main/java/com/cooleshow/student/ui/course/LiveCourseFragment.java

@@ -153,7 +153,7 @@ public class LiveCourseFragment extends BaseMVPFragment<FragmentLiveCourseLayout
             LiveCourseListBean.RowsBean item = (LiveCourseListBean.RowsBean) adapter.getItem(position);
             ARouter.getInstance()
                     .build(RouterPath.WebCenter.ACTIVITY_HTML)
-                    .withString(WebConstants.WEB_URL, WebConstants.TEACHER_LIVE_DETAIL + "?groupId=" + item.courseGoupId)
+                    .withString(WebConstants.WEB_URL, WebConstants.TEACHER_LIVE_DETAIL + "?groupId=" + item.courseGoupId + "&classId=" + item.courseId)
                     .navigation();
         });
     }

+ 1 - 1
student/src/main/java/com/cooleshow/student/ui/main/CourseTableFragment.kt

@@ -135,7 +135,7 @@ class CourseTableFragment :
                     .build(RouterPath.WebCenter.ACTIVITY_HTML)
                     .withString(
                         WebConstants.WEB_URL,
-                        WebConstants.TEACHER_LIVE_DETAIL + "?groupId=" + data.courseGoupId
+                        WebConstants.TEACHER_LIVE_DETAIL + "?groupId=" + data.courseGoupId+"&classId="+data.courseId
                     )
                     .navigation()
             }

+ 1 - 1
student/src/main/java/com/cooleshow/student/ui/main/HomeFragment.java

@@ -393,7 +393,7 @@ public class HomeFragment extends BaseMVPFragment<FragmentHomeLayoutBinding, Hom
             case LIVE_COURSE:
                 ARouter.getInstance()
                         .build(RouterPath.WebCenter.ACTIVITY_HTML)
-                        .withString(WebConstants.WEB_URL, WebConstants.TEACHER_LIVE_DETAIL + "?groupId=" + bean.courseGroupId)
+                        .withString(WebConstants.WEB_URL, WebConstants.TEACHER_LIVE_DETAIL + "?groupId=" + bean.courseGroupId + "&classId=" + bean.courseId)
                         .navigation();
                 break;
             case OTHER_COURSE:

+ 1 - 0
teacher/src/main/java/com/cooleshow/teacher/bean/LiveCourseListBean.java

@@ -70,6 +70,7 @@ public class LiveCourseListBean {
 
         public String backgroundPic;
         public int courseGroupId;
+        public String courseId;
         public String courseGroupName;
         public String endTime;
         public String startTime;

+ 1 - 1
teacher/src/main/java/com/cooleshow/teacher/ui/course/LiveCourseFragment.java

@@ -149,7 +149,7 @@ public class LiveCourseFragment extends BaseMVPFragment<FragmentLiveCourseLayout
             LiveCourseListBean.RowsBean item = (LiveCourseListBean.RowsBean) adapter.getItem(position);
             ARouter.getInstance()
                     .build(RouterPath.WebCenter.ACTIVITY_HTML)
-                    .withString(WebConstants.WEB_URL, WebConstants.TEACHER_LIVE_DETAIL + "?groupId=" + item.courseGroupId)
+                    .withString(WebConstants.WEB_URL, WebConstants.TEACHER_LIVE_DETAIL + "?groupId=" + item.courseGroupId+ "&classId=" + item.courseId)
                     .navigation();
         });
         buildDefaultCourseStatusFilterList();

+ 1 - 1
teacher/src/main/java/com/cooleshow/teacher/ui/main/CourseTableFragment.kt

@@ -159,7 +159,7 @@ class CourseTableFragment :
                 .build(RouterPath.WebCenter.ACTIVITY_HTML)
                 .withString(
                     WebConstants.WEB_URL,
-                    WebConstants.TEACHER_LIVE_DETAIL + "?groupId=" + data.courseGoupId
+                    WebConstants.TEACHER_LIVE_DETAIL + "?groupId=" + data.courseGoupId+"&classId="+data.courseId
                 )
                 .navigation()
         }

+ 1 - 1
teacher/src/main/java/com/cooleshow/teacher/ui/main/HomeFragment.kt

@@ -372,7 +372,7 @@ class HomeFragment : BaseMVPFragment<FragmentHomeLayoutBinding, HomePresenter>()
                 .build(RouterPath.WebCenter.ACTIVITY_HTML)
                 .withString(
                     WebConstants.WEB_URL,
-                    WebConstants.TEACHER_LIVE_DETAIL + "?groupId=" + bean.courseGroupId
+                    WebConstants.TEACHER_LIVE_DETAIL + "?groupId=" + bean.courseGroupId + "&classId=" + bean.courseId
                 )
                 .navigation()
             CourseConstants.OTHER_COURSE ->                 //陪练课