From 00238dd781b1c0aff06a55b48408745a0cf463de Mon Sep 17 00:00:00 2001 From: liguoyang Date: Tue, 27 Aug 2024 15:06:29 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=97=B6=E9=97=B4=E5=A4=84=E7=90=86?= =?UTF-8?q?=E9=97=AE=E9=A2=98,=E4=B8=BB=E5=8A=A8=E5=86=99=E5=85=A5?= =?UTF-8?q?=E5=8E=82=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Organization/Services/Implements/FactorySettingService.cs | 2 +- .../Organization/Services/Implements/GainfoFaceService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/FactorySettingService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/FactorySettingService.cs index 84fb2d8f..11b613a9 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/FactorySettingService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/FactorySettingService.cs @@ -52,7 +52,7 @@ public class FactorySettingService : IFactorySettingService var settings = await GetFactorySettingsAsync(factory); var setting = settings.FirstOrDefault() ?? new FactorySettingResponse(); - setting.UserQrCodeExpiration ??= 60 * 1000 * 60; + setting.UserQrCodeExpiration ??= 60; setting.FaceImageDetection ??= new FaceImageDetectionDto { Enable = true, diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs index 17708bef..30368c7f 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs @@ -198,7 +198,7 @@ public class GainfoFaceService : IGainfoFaceService var gainfo = await _gainfoStore.Queryable().Where(x => x.No == request.UserNo || x.Code == request.UserNo).SingleAsync(); gainfo.ThrowIfNull("人员档案信息不存在"); - await DetectFaceImageQualityAsync(request.Face); + await DetectFaceImageQualityAsync(request.Face, gainfo.Factory); var face = await _faceDbContext.Queryable().Where(x => x.UserCode == gainfo.Code).SingleAsync();