From cf316ba0652c500903e62aa907cc13e75ca42117 Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Mon, 24 Nov 2025 09:04:29 +0800 Subject: [PATCH] s --- VOL.Ai/Services/AiAppService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VOL.Ai/Services/AiAppService.cs b/VOL.Ai/Services/AiAppService.cs index a63ee49..5402d6a 100644 --- a/VOL.Ai/Services/AiAppService.cs +++ b/VOL.Ai/Services/AiAppService.cs @@ -247,11 +247,11 @@ 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) { - if (body != null && body.Confidence >= 72.62) + if (body != null && body.Confidence >= 70) { var student = await (from s in _studentRepository.FindAsIQueryable(x => x.SchoolCode == paramDto.SchoolCode && x.StudentNo == body.EntityId) join c in _studentRepository.DbContext.Set() on s.ClassId equals c.Id @@ -269,7 +269,7 @@ namespace VOL.Ai.Services }).FirstOrDefaultAsync(); if (student == null) - throw new Exception("未查询到学生信息"); + continue; return student; }