Commit c5571a43 by wanggang

下载时长

parent ad6e557b
...@@ -139,6 +139,11 @@ static NSString * const downloadModelCacheName = @"downloadModel"; ...@@ -139,6 +139,11 @@ static NSString * const downloadModelCacheName = @"downloadModel";
if (self.lesson_type != COLessonTypeVideo) { if (self.lesson_type != COLessonTypeVideo) {
return @""; return @"";
} }
if (WXCOStringIsEmpty(self.video_length)) {
return @"";
}
return [NSString stringWithFormat:@"时长:%@", self.video_length]; return [NSString stringWithFormat:@"时长:%@", self.video_length];
} }
......
...@@ -83,10 +83,14 @@ typedef NS_ENUM(NSUInteger, COLiveType) { ...@@ -83,10 +83,14 @@ typedef NS_ENUM(NSUInteger, COLiveType) {
/// PDF文档的类型 /// PDF文档的类型
typedef NS_ENUM(NSUInteger, COPdfType) { typedef NS_ENUM(NSUInteger, COPdfType) {
/// 讲义类型的PDF /// 讲义类型的 PDF
COPdfTypeHandouts, COPdfTypeHandouts,
/// 试卷类型的PDF
COPdfTypePaper /// 试卷类型的 PDF
COPdfTypePaper,
/// 练习类型的 PDF
COPdfTypeExercise
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment