fix 外部人员检查照片
This commit is contained in:
@@ -139,6 +139,9 @@ public class GainfoFaceService : IGainfoFaceService
|
||||
gainfo.ThrowIfNull("人员信息不存在");
|
||||
|
||||
var face = await _faceDbContext.Queryable<GainfoFaceEntity>().Where(x => x.UserCode == gainfo.Code).SingleAsync();
|
||||
|
||||
if (gainfo.Type == GainfoUserTypeEnumType.External)
|
||||
{
|
||||
var faceSimilaritySetting = await _dbContext.Queryable<BasicTypeEntity>().Where(x => x.Type == "faceSimilarity").SingleAsync();
|
||||
if (faceSimilaritySetting != null)
|
||||
{
|
||||
@@ -165,6 +168,7 @@ public class GainfoFaceService : IGainfoFaceService
|
||||
throw new UserFriendlyException($"系统检测非本人更新,请重试(相似度{faceSimilarity})");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var taskType = face == null ? DeviceTaskEnumType.Add : DeviceTaskEnumType.Update;
|
||||
if (face == null)
|
||||
|
||||
Reference in New Issue
Block a user