From 0e008735021da6226f63237bbae2b01d833bce76 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Mon, 15 Sep 2025 16:10:35 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E8=A1=A5=E5=85=85=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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs b/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs index 2ee1133c..55bed014 100644 --- a/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs +++ b/Src/Dlhis.External/Appointment/Services/Implements/AppointmentService.cs @@ -229,7 +229,7 @@ public class AppointmentService : IAppointmentService foreach (var dto in list) { - var response = await httpClient.PostAsync("https://pay.aizhuhotel.com/jschuneng", new StringContent(new + var json = new { arr = dto.DoorStart!.Value.ToString("yyyy-MM-dd HH:mm:ss"), // [必填] 到达时间 dep = dto.DoorEnd!.Value.ToString("yyyy-MM-dd HH:mm:ss"), // 离开时间 @@ -255,10 +255,11 @@ public class AppointmentService : IAppointmentService .Select(x => x.Name) .Distinct().Join(",") : string.Empty // 门岗名称 - }.ToJson(), Encoding.UTF8, "application/json")); + }.ToJson(); + var response = await httpClient.PostAsync("https://pay.aizhuhotel.com/jschuneng", new StringContent(json, Encoding.UTF8, "application/json")); var responseJson = await response.Content.ReadAsStringAsync(); - _logger.LogInformation("发送到501访客预约{idNo}--{name} ,返回:{responseJson}", dto.IdNo, dto.Name, responseJson); + _logger.LogInformation("发送到501访客预约{idNo}--{name},发送:{json} ,返回:{responseJson}", dto.IdNo, dto.Name, json, responseJson); } } } \ No newline at end of file