add 补充日志
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user