|
@@ -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];
|
|
|
}
|
|
|
}
|