|
|
@ -1250,6 +1250,8 @@ WHERE A.Id = '{id}'"; |
|
|
|
for (int j = 0; j < course.CourseWareList.Count; j++) |
|
|
|
for (int j = 0; j < course.CourseWareList.Count; j++) |
|
|
|
{ |
|
|
|
{ |
|
|
|
course.CourseWareList[j].Attachments = await Db.Queryable<Ghre_CourseWareAttachment>().Where(x => x.CourseWareId == course.CourseWareList[j].Id).ToListAsync(); |
|
|
|
course.CourseWareList[j].Attachments = await Db.Queryable<Ghre_CourseWareAttachment>().Where(x => x.CourseWareId == course.CourseWareList[j].Id).ToListAsync(); |
|
|
|
|
|
|
|
if (course.CourseWareList[j].Attachments != null && course.CourseWareList[j].Attachments.Any()) |
|
|
|
|
|
|
|
course.CourseWareList[j].Attachments.ForEach(x => x.RelativePath = "/Advanced" + x.RelativePath); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (course.CourseBeginTime != null && course.CourseEndTime != null) |
|
|
|
if (course.CourseBeginTime != null && course.CourseEndTime != null) |
|
|
@ -1269,8 +1271,8 @@ WHERE A.Id = '{id}'"; |
|
|
|
course.CourseStandardDuration1 = mins; |
|
|
|
course.CourseStandardDuration1 = mins; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (course.StudyDuration1.IsNull()) |
|
|
|
if (course.StudyDuration1.IsNull()) |
|
|
|
course.StudyDuration = $"0 分 0 秒"; |
|
|
|
course.StudyDuration = $"0 分 0 秒"; |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
var dt = DateTime.Now; |
|
|
|
var dt = DateTime.Now; |
|
|
|