fix 优化日志
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user