diff --git a/VOL.Ai/Services/AiAppService.cs b/VOL.Ai/Services/AiAppService.cs index cc8d383..f5fc50e 100644 --- a/VOL.Ai/Services/AiAppService.cs +++ b/VOL.Ai/Services/AiAppService.cs @@ -261,7 +261,7 @@ namespace VOL.Ai.Services public async Task StudentFace(GetFaceParam paramDto) { - var faces = await ALiYunFace.SearchFace(paramDto.Base64, false); + var faces = await ALiYunFace.SearchFace(paramDto.Base64, true); foreach (var body in faces) { @@ -283,7 +283,7 @@ namespace VOL.Ai.Services }).FirstOrDefaultAsync(); if (student == null) - throw new Exception("未查询到学生信息"); + continue; return student; }