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();