From 6f6fba90d38bafc29be6f4b4da5be484440bb53c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=87=E9=98=B3=20=E9=82=B9?= Date: Wed, 27 Dec 2023 17:59:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E4=BC=A02.0=E6=97=B6=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E6=8C=87=E5=AE=9A=E5=9B=BE=E7=89=87=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E4=B8=BAjpg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 24Hour/Controllers/Common/LawyerArchivesController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/24Hour/Controllers/Common/LawyerArchivesController.cs b/24Hour/Controllers/Common/LawyerArchivesController.cs index 1a4604e..165546c 100644 --- a/24Hour/Controllers/Common/LawyerArchivesController.cs +++ b/24Hour/Controllers/Common/LawyerArchivesController.cs @@ -1059,10 +1059,12 @@ namespace _24Hour.Controllers.Common if (System.IO.File.Exists(filepath)) { var basestr = Elight.Utility.Encrypt.DataEncryption.Decryptiones(filepath); + var filename = Path.GetFileName(filepath); + filename = Path.ChangeExtension(filename, ".jpg"); await twentyClient.UploadImage(new UploadDto() { Bmsah = registerinfo.bmsah, - FileName = Path.GetFileName(filepath), + FileName = filename, Code = typecode, Bhdlbm = registerinfo.bhdlbh, UnitCode = registerinfo.dwbm,