Browse Source

1.小组课详情 14.4系统上顶部空白问题处理。
2.进入房间时间配置值错误导致异常。

Steven 2 months ago
parent
commit
612eb5a247

+ 8 - 0
KulexiuForTeacher/KulexiuForTeacher/Module/Course/MusicRoom/Controller/MusicRoomViewController.m

@@ -224,6 +224,14 @@
     return CGFLOAT_MIN;
 }
 
+- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
+    return [UIView new];
+}
+- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
+{
+    return [UIView new];
+}
+
 - (void)chatAction:(NSString *)targetId {
     if ([NSString isEmptyString:targetId]) {
         [LOADING_MANAGER MBShowAUTOHidingInWindow:@"报名未结束,暂无群组"];

+ 2 - 0
KulexiuForTeacher/KulexiuForTeacher/Module/Course/MyGroupCourse/Controller/GroupCourseGroupViewController.m

@@ -71,11 +71,13 @@
         else {
             [LOADING_MANAGER MBShowAUTOHidingInWindow:MESSAGEKEY];
         }
+        [self refreshListPage];
     } faliure:^(NSError * _Nonnull error) {
         
     }];
 }
 
+
 - (void)requestCourseInfo {
     
     [KSNetworkingManager getCourseGroupInfoRequest:KS_GET courseGroupId:self.courseGroupId success:^(NSDictionary * _Nonnull dic) {

+ 2 - 6
KulexiuForTeacher/KulexiuForTeacher/Module/Course/VIPCourse/View/ProgramCourseGroupBodyView.m

@@ -49,10 +49,6 @@
 
 @property (nonatomic, strong) NSMutableArray *attendenceStatusArray;
 
-@property (nonatomic, assign) NSInteger joinRoomBeforeTime; // 上课开始时间
-
-@property (nonatomic, assign) NSInteger quitRomeEndTime;    // 下课截止时间
-
 @end
 
 @implementation ProgramCourseGroupBodyView
@@ -236,14 +232,14 @@
     NSDate *currentDate = [NSDate date];
     NSTimeInterval beginTimeInterval = [beginDate timeIntervalSinceDate:currentDate];
     NSTimeInterval endTimeInterval = [currentDate timeIntervalSinceDate:endDate];
-    if (beginTimeInterval <= self.joinRoomBeforeTime * 60 && endTimeInterval < 0) {
+    if (beginTimeInterval <= self.enterStartTime * 60 && endTimeInterval < 0) {
         [self joinClassRoom:model];
     }
     else if (endTimeInterval > 0) {
         [LOADING_MANAGER MBShowAUTOHidingInWindow:@"该课程已结束"];
     }
     else {
-        NSString *tipsString = [NSString stringWithFormat:@"课程还未开始,请在上课前%zd分钟进入", self.joinRoomBeforeTime];
+        NSString *tipsString = [NSString stringWithFormat:@"课程还未开始,请在上课前%zd分钟进入", self.enterStartTime];
         [LOADING_MANAGER MBShowAUTOHidingInWindow:tipsString];
     }    
 }