From 25f36f8d125dd99ad7a03e2a54ef3ed0cf21843a Mon Sep 17 00:00:00 2001 From: liguoyang Date: Mon, 10 Nov 2025 16:20:51 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=A7=BB=E9=99=A4=E8=AF=81=E5=8D=A1api?= =?UTF-8?q?=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Implements/GainfoFaceService.cs | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs index 12594198..f0536eb7 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs @@ -284,7 +284,7 @@ public class GainfoFaceService : IGainfoFaceService var userId = _currentUser.GetIntSubjectId(); - //await DetectFaceImageQualityAsync(request.Face, gainfo.Factory); + await DetectFaceImageQualityAsync(request.Face, gainfo.Factory); var taskType = face == null ? DeviceTaskEnumType.Add : DeviceTaskEnumType.Update; if (face == null) @@ -363,18 +363,18 @@ public class GainfoFaceService : IGainfoFaceService _logger.LogError(e, "上传face数据到sap失败:{message}", e.Message); } - try - { - await _hainingApi.UploadAsync(new HainingApiUploadRequest() - { - Code = gainfo.Code, - Base64 = request.Face - }); - } - catch (Exception e) - { - _logger.LogError(e, "上传face数据到老系统失败:{message}", e.Message); - } + // try + // { + // await _hainingApi.UploadAsync(new HainingApiUploadRequest() + // { + // Code = gainfo.Code, + // Base64 = request.Face + // }); + // } + // catch (Exception e) + // { + // _logger.LogError(e, "上传face数据到老系统失败:{message}", e.Message); + // } //生成任务 await _devicePermissionService.GenerateDeviceTasksAsync(gainfo.No, taskType, "照片上传生成");