From 437ded7b54e9393b3290556b873692c4328ba93c Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Thu, 6 Feb 2025 13:38:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=9B=E5=B0=BE=E5=9F=B9=E8=AE=AD=E8=AE=B2?= =?UTF-8?q?=E5=B8=88=E8=AF=81=E4=BB=B6=E6=95=B0=E6=8D=AE=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tiobon.Core.Services/Ghre/Ghre_TeacherServices.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 {