This commit is contained in:
tanglong 2026-01-16 15:42:25 +08:00
parent 24d9cd854d
commit 3a731ba2a7
3 changed files with 14 additions and 13 deletions

View File

@ -1639,7 +1639,7 @@ namespace VOL.Ai.Services
// 7️⃣ 删除扫码记录 // 7️⃣ 删除扫码记录
// ========================= // =========================
_scanCodeLoginRepository.Delete(loginInfo); _scanCodeLoginRepository.Delete(loginInfo);
//await _scanCodeLoginRepository.SaveChangesAsync(); await _scanCodeLoginRepository.SaveChangesAsync();
return res; return res;
} }

View File

@ -76,14 +76,15 @@ namespace VOL.Model.Ai
public class Ai_TeacherFaceInfo public class Ai_TeacherFaceInfo
{ {
public int Id { get; set; } public int Id { get; set; }
/// <summary>
/// 学校Code ///// <summary>
/// </summary> ///// 学校Code
///// </summary>
//public string SchoolCode { get; set; } //public string SchoolCode { get; set; }
/// <summary> ///// <summary>
/// 学校名称 ///// 学校名称
/// </summary> ///// </summary>
//public string SchoolName { get; set; } //public string SchoolName { get; set; }
/// <summary> /// <summary>

View File

@ -48,12 +48,12 @@ namespace VOL.WebApi.Filter
} }
// 查询设备信息是否存在 // 查询设备信息是否存在
var res = await _deviceAssocSchoolRepository.FindAsyncFirst(x => x.SchoolCode == schoolCode && x.Code == code); //var res = await _deviceAssocSchoolRepository.FindAsyncFirst(x => x.SchoolCode == schoolCode && x.Code == code);
if (res == null) //if (res == null)
{ //{
context.Result = new NotFoundObjectResult("设备信息不存在"); // context.Result = new NotFoundObjectResult("设备信息不存在");
return; // return;
} //}
// 执行下一个过滤器或操作 // 执行下一个过滤器或操作
await next(); await next();