test hik face

This commit is contained in:
2025-05-13 11:14:58 +08:00
parent ea1832894e
commit 643fbe63fc
3 changed files with 448 additions and 1 deletions

View File

@@ -1,6 +1,9 @@
using Dlhis.Basic.Organization.Request;
using System.Text;
using Dlhis.Basic.Organization.Request;
using Dlhis.Basic.Organization.Response;
using Dlhis.Basic.Organization.Services;
using HttpUtil;
using Kurisu.AspNetCore.Utils.Extensions;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
@@ -31,4 +34,16 @@ public class GainfoFacesController : ControllerBase
{
return await _gainfoFaceService.GetPageAsync(request);
}
[AllowAnonymous]
[HttpPost("test")]
public string TestAsync(GainfoFaceValidateRequest request)
{
HttpUtillib.SetPlatformInfo("27390082", "MLl7Dv7p5Pgc9XYI3r4O", "10.32.0.10", 443, true);
var r = HttpUtillib.HttpPost("/artemis/api/frs/v1/application/oneToOne", request.ToJson(), 15);
var rs = Encoding.UTF8.GetString(r);
return rs;
}
}