diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Device/LessonShow.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Device/LessonShow.cs index 317996b0d..a239af520 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Device/LessonShow.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Device/LessonShow.cs @@ -74,7 +74,7 @@ namespace Learun.Application.WebApi.Modules.Device var bj = this.GetReq(); if (bj.DeviceNo.IsNullOrWhiteSpace()) return Fail($"设备码不正确({bj.DeviceNo});"); var classInfo = classInfoIBLL.GetClassNoByDevice(bj.DeviceNo); - if (classInfo == null) return Fail("未找到班级"); + if (classInfo == null) return Success(new { Lesson = new List(), ClassName="" }); //return Fail("未找到班级"); var lesson = arrangeLessonTermIBLL.GetLessonDay(DateTime.Today, classInfo.ClassNo, ""); return Success(new { Lesson=lesson,classInfo.ClassName}); } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassInfo/ClassInfoService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassInfo/ClassInfoService.cs index 811cdd440..24a746689 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassInfo/ClassInfoService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassInfo/ClassInfoService.cs @@ -384,7 +384,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration try { var cn = this.BaseRepository("CollegeMIS").FindEntity(x => x.DeviceCode == dev); - if (cn == null) throw new Exception("未找到班级"); + //if (cn == null) throw new Exception("未找到班级"); return cn; }