fix idno加密

This commit is contained in:
2024-04-17 16:42:05 +08:00
parent 81c4fdabbc
commit 39dbdf7d38
4 changed files with 35 additions and 8 deletions

View File

@@ -172,9 +172,9 @@ public class GainfosController : ControllerBase
/// <returns></returns>
[AllowAnonymous]
[HttpPost("check/idnoWithName")]
public async Task CheckIdNoAndNameMatchAsync(GainfoCheckIdNoAndNameRequest request)
public async Task<string> CheckIdNoAndNameMatchAsync(GainfoCheckIdNoAndNameRequest request)
{
await _gainfoService.CheckIdNoAndNameMatchAsync(request);
return await _gainfoService.CheckIdNoAndNameMatchAsync(request);
}
}

View File

@@ -1,5 +1,4 @@
using System.Text.RegularExpressions;
using Dlhis.Basic.Device.Services;
using Dlhis.Basic.Device.Services;
using Dlhis.Basic.Organization.Request;
using Dlhis.Basic.Organization.Response;
using Dlhis.Entity.Basic.Entity;
@@ -336,7 +335,8 @@ public class GainfoService : IGainfoService
match.ThrowIfFalse("验证失败!");
return request.IdNo;
var protector = _dataProtectionProvider.CreateProtector("gainfo:external:idno");
return protector.Protect(request.IdNo);
}
/// <summary>