diff --git a/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs b/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs index 4785457c..4697c734 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs @@ -1250,6 +1250,8 @@ WHERE A.Id = '{id}'"; for (int j = 0; j < course.CourseWareList.Count; j++) { course.CourseWareList[j].Attachments = await Db.Queryable().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) @@ -1269,8 +1271,8 @@ WHERE A.Id = '{id}'"; course.CourseStandardDuration1 = mins; } - if (course.StudyDuration1.IsNull()) - course.StudyDuration = $"0 分 0 秒"; + if (course.StudyDuration1.IsNull()) + course.StudyDuration = $"0 分 0 秒"; else { var dt = DateTime.Now;