fix second修改

This commit is contained in:
2025-05-14 17:20:45 +08:00
parent b8c523f5a1
commit 9174f5ed37

View File

@@ -230,7 +230,7 @@ public class GainfoFaceService : IGainfoFaceService
var face = await _faceDbContext.Queryable<GainfoFaceEntity>().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();