fix external支持外包人员

This commit is contained in:
2024-06-14 15:21:35 +08:00
parent c1417e667d
commit 86c7111c19
4 changed files with 22 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations;
using Org.BouncyCastle.Crypto.Digests;
namespace Dlhis.Basic.Organization.Request;
@@ -22,7 +23,7 @@ public class GainfoUploadFaceRequest : IValidatableObject
bool v = true;
try
{
Convert.FromBase64String(Face);
_ = Convert.FromBase64String(Face);
}
catch (Exception)
{
@@ -34,4 +35,4 @@ public class GainfoUploadFaceRequest : IValidatableObject
yield return new ValidationResult("人脸照片需要为Base64格式", new[] { nameof(Face) });
}
}
}
}