Commit ab854e1b authored by 黄奎's avatar 黄奎

页面修改

parent 5e3b343d
......@@ -9,6 +9,7 @@ using Edu.Common.Plugin;
using Edu.Model.ViewModel.Course;
using Edu.Module.Course;
using Edu.WebApi.Filter;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json.Linq;
......@@ -1504,6 +1505,7 @@ namespace Edu.WebApi.Controllers.Course
/// </summary>
/// <returns></returns>
[HttpPost]
[AllowAnonymous]
public ApiResult UpdateTimeClassVideo()
{
var extModel = Common.Plugin.JsonHelper.DeserializeObject<RB_Class_Time_ViewModel>(RequestParm.Msg.ToString());
......@@ -1511,7 +1513,7 @@ namespace Edu.WebApi.Controllers.Course
{
return ApiResult.Failed("请传入上课时间Id");
}
var oldModel = classModule.GetClassTimeListRepository(new RB_Class_Time_ViewModel { ClassTimeId = extModel.ClassTimeId, Group_Id = base.UserInfo.Group_Id }).FirstOrDefault();
var oldModel = classModule.GetClassTimeListRepository(new RB_Class_Time_ViewModel { ClassTimeId = extModel.ClassTimeId, }).FirstOrDefault();
if (oldModel == null || oldModel.ClassTimeId == 0)
{
return ApiResult.Failed("上课计划不存在");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment