fix 优化日志

This commit is contained in:
2024-12-26 17:03:24 +08:00
parent 588c1ff0a7
commit 5795efc3c4
2 changed files with 4 additions and 2 deletions

View File

@@ -118,11 +118,13 @@ public class AppointmentService : IAppointmentService
try try
{ {
await _dhApi.SendFaceAsync(new FaceRequest var r = await _dhApi.SendFaceAsync(new FaceRequest
{ {
IdNo = detail.IdNo, IdNo = detail.IdNo,
Face = request.Base64Image Face = request.Base64Image
}); });
_logger.LogInformation("上传face数据到大华成功:{json}", r.ToJson());
} }
catch (Exception e) catch (Exception e)
{ {

View File

@@ -10,5 +10,5 @@ public interface IDhApi
{ {
[Post("/evo-apigw/evo-visitor/1.0.0/card/visitor/custom-face")] [Post("/evo-apigw/evo-visitor/1.0.0/card/visitor/custom-face")]
[RequestResultHandler(typeof(DhResultHandler))] [RequestResultHandler(typeof(DhResultHandler))]
Task SendFaceAsync(FaceRequest request); Task<DhResponse> SendFaceAsync(FaceRequest request);
} }