diff --git a/Tiobon.Core.Services/Ghre/Ghre_TeacherServices.cs b/Tiobon.Core.Services/Ghre/Ghre_TeacherServices.cs index bccd4014..d1f3c7bd 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_TeacherServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_TeacherServices.cs @@ -169,6 +169,13 @@ FROM (SELECT A.*, var teacherAttachments = await _ghre_TeacherAttachmentServices.QueryDto(x => ids.Contains(x.TeacherId.Value)); var ids1 = teacherAttachments.Select(x => x.Id.ToString()).ToList(); var attachments = await _ghre_AttachmentServices.QueryDto(x => ids1.Contains(x.TableName)); + attachments.ForEach(x => + { + x.FileURL = "/Advanced" + x.FileURL; + x.PhysicsPath = "/Advanced" + x.PhysicsPath; + x.RelativePath = "/Advanced" + x.RelativePath; + x.ThumbnailPath = "/Advanced" + x.ThumbnailPath; + }); teacherAttachments.ForEach(x => { @@ -701,7 +708,7 @@ FROM (SELECT A.*, { attachments1[m].TableName = attachmentId.ObjToString(); - photoUrl = $"/files/upload/{DateTimeHelper.ConvertToSecondString1(DateTime.Now)}.png"; + photoUrl = $"/files/upload/{DateTimeHelper.ConvertToSecondString1(DateTime.Now)}/{attachments1[m].AttachFileName}.png"; try {