From d29d2ec6ee36c5cc8af0da929658cdf1beb4fd3b Mon Sep 17 00:00:00 2001 From: tanglong <842690096@qq.com> Date: Fri, 16 Jan 2026 16:56:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E4=BF=A1=E6=81=AF=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VOL.WebApi/Filter/ValidateDeviceFilter.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/VOL.WebApi/Filter/ValidateDeviceFilter.cs b/VOL.WebApi/Filter/ValidateDeviceFilter.cs index 6a62107..3efde3f 100644 --- a/VOL.WebApi/Filter/ValidateDeviceFilter.cs +++ b/VOL.WebApi/Filter/ValidateDeviceFilter.cs @@ -48,12 +48,12 @@ namespace VOL.WebApi.Filter } // 查询设备信息是否存在 - var res = await _deviceAssocSchoolRepository.FindAsyncFirst(x => x.SchoolCode == schoolCode && x.Code == code); - if (res == null) - { - context.Result = new NotFoundObjectResult("设备信息不存在"); - return; - } + //var res = await _deviceAssocSchoolRepository.FindAsyncFirst(x => x.SchoolCode == schoolCode && x.Code == code); + //if (res == null) + //{ + // context.Result = new NotFoundObjectResult("设备信息不存在"); + // return; + //} // 执行下一个过滤器或操作 await next();