|
|
@@ -74,7 +74,7 @@ namespace Learun.Application.WebApi.Modules.Device |
|
|
|
var bj = this.GetReq<BindDevClass>(); |
|
|
|
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<TimeTable>(), ClassName="" }); //return Fail("未找到班级"); |
|
|
|
var lesson = arrangeLessonTermIBLL.GetLessonDay(DateTime.Today, classInfo.ClassNo, ""); |
|
|
|
return Success(new { Lesson=lesson,classInfo.ClassName}); |
|
|
|
} |
|
|
|