From 05af09bd1fa60f82bbfbedb8960fc1d488dae01b Mon Sep 17 00:00:00 2001 From: dao Date: Mon, 23 Dec 2024 11:00:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Learun.Application.WebApi/Modules/Device/LessonShow.cs | 2 +- .../EducationalAdministration/ClassInfo/ClassInfoService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }