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