fix idno加密
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user