diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs index ce4abe1d..fbebac61 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoFaceService.cs @@ -230,7 +230,7 @@ public class GainfoFaceService : IGainfoFaceService var face = await _faceDbContext.Queryable().Where(x => x.UserCode == gainfo.Code).SingleAsync(); if (face != null) { - ((DateTime.Now - face.ModifiedTime).Seconds > 300).ThrowIfFalse("请勿频繁更新照片,请稍后重试"); + ((DateTime.Now - face.ModifiedTime).TotalSeconds > 300).ThrowIfFalse("请勿频繁更新照片,请稍后重试"); } var userId = _currentUser.GetIntSubjectId();