From 5795efc3c4041b001e002d2e0a941defa4e7ff11 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Thu, 26 Dec 2024 17:03:24 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Appointment/Services/Implements/AppointmentService.cs | 4 +++- Src/Dlhis.Dh.Api/IDhApi.cs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Src/Dlhis.Basic/Appointment/Services/Implements/AppointmentService.cs b/Src/Dlhis.Basic/Appointment/Services/Implements/AppointmentService.cs index d242d82a..970ace7c 100644 --- a/Src/Dlhis.Basic/Appointment/Services/Implements/AppointmentService.cs +++ b/Src/Dlhis.Basic/Appointment/Services/Implements/AppointmentService.cs @@ -118,11 +118,13 @@ public class AppointmentService : IAppointmentService try { - await _dhApi.SendFaceAsync(new FaceRequest + var r = await _dhApi.SendFaceAsync(new FaceRequest { IdNo = detail.IdNo, Face = request.Base64Image }); + + _logger.LogInformation("上传face数据到大华成功:{json}", r.ToJson()); } catch (Exception e) { diff --git a/Src/Dlhis.Dh.Api/IDhApi.cs b/Src/Dlhis.Dh.Api/IDhApi.cs index a0d53a0a..bc87a448 100644 --- a/Src/Dlhis.Dh.Api/IDhApi.cs +++ b/Src/Dlhis.Dh.Api/IDhApi.cs @@ -10,5 +10,5 @@ public interface IDhApi { [Post("/evo-apigw/evo-visitor/1.0.0/card/visitor/custom-face")] [RequestResultHandler(typeof(DhResultHandler))] - Task SendFaceAsync(FaceRequest request); + Task SendFaceAsync(FaceRequest request); } \ No newline at end of file