Browse Source

质检返回日志查看

田爽 9 months ago
parent
commit
1b778ce196
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/Hotline.Api/Controllers/QualityController.cs

+ 4 - 0
src/Hotline.Api/Controllers/QualityController.cs

@@ -639,6 +639,10 @@ namespace Hotline.Api.Controllers
         [LogFilter("智能质检结果返回接收")]
         public async Task AiResult([FromBody] List<AiQualityResultDto> dto)
         {
+	        Request.EnableBuffering();
+	        var sr = new StreamReader(Request.Body);
+	        var data = await sr.ReadToEndAsync(HttpContext.RequestAborted);
+	        _logger.LogInformation(data);
             await _qualityApplication.AiResultAsync(dto, HttpContext.RequestAborted);
         }