Browse Source

回传2.0时需要指定图片格式为jpg

develop-FileUpload-test
胡超1 2 years ago
parent
commit
6f6fba90d3
  1. 4
      24Hour/Controllers/Common/LawyerArchivesController.cs

4
24Hour/Controllers/Common/LawyerArchivesController.cs

@ -1059,10 +1059,12 @@ namespace _24Hour.Controllers.Common
if (System.IO.File.Exists(filepath)) if (System.IO.File.Exists(filepath))
{ {
var basestr = Elight.Utility.Encrypt.DataEncryption.Decryptiones(filepath); var basestr = Elight.Utility.Encrypt.DataEncryption.Decryptiones(filepath);
var filename = Path.GetFileName(filepath);
filename = Path.ChangeExtension(filename, ".jpg");
await twentyClient.UploadImage(new UploadDto() await twentyClient.UploadImage(new UploadDto()
{ {
Bmsah = registerinfo.bmsah, Bmsah = registerinfo.bmsah,
FileName = Path.GetFileName(filepath), FileName = filename,
Code = typecode, Code = typecode,
Bhdlbm = registerinfo.bhdlbh, Bhdlbm = registerinfo.bhdlbh,
UnitCode = registerinfo.dwbm, UnitCode = registerinfo.dwbm,

Loading…
Cancel
Save