Commit 1a7568ec authored by 黄奎's avatar 黄奎

页面修改

parent a0dcb77f
...@@ -5613,7 +5613,7 @@ namespace Edu.Module.Course ...@@ -5613,7 +5613,7 @@ namespace Edu.Module.Course
{ {
{nameof(RB_Order_Guest_ViewModel.CourseChapterNo), tempCourseChapterNo} {nameof(RB_Order_Guest_ViewModel.CourseChapterNo), tempCourseChapterNo}
}; };
//order_GuestRepository.Update(fileds, new WhereHelper(nameof(RB_Order_Guest_ViewModel.Id), item.Id)); order_GuestRepository.Update(fileds, new WhereHelper(nameof(RB_Order_Guest_ViewModel.Id), item.Id));
} }
} }
} }
......
...@@ -138,7 +138,7 @@ namespace Edu.WebApi.Timers ...@@ -138,7 +138,7 @@ namespace Edu.WebApi.Timers
dealStudentProgressTimer = new System.Timers.Timer() dealStudentProgressTimer = new System.Timers.Timer()
{ {
Interval = (1000 * 60) * (60*1) //1小时检查一次 Interval = (1000 * 60) * (1) //1小时检查一次
}; };
dealStudentProgressTimer.Elapsed += new System.Timers.ElapsedEventHandler(DealStudentProgressModule); dealStudentProgressTimer.Elapsed += new System.Timers.ElapsedEventHandler(DealStudentProgressModule);
dealStudentProgressTimer.Enabled = true; dealStudentProgressTimer.Enabled = true;
...@@ -172,6 +172,7 @@ namespace Edu.WebApi.Timers ...@@ -172,6 +172,7 @@ namespace Edu.WebApi.Timers
private static readonly string createMarkDataKey = "createMarkDataKey"; private static readonly string createMarkDataKey = "createMarkDataKey";
private static readonly string dealStudentProgress = "dealStudentProgress";
/// <summary> /// <summary>
/// 处理学员上课进度 /// 处理学员上课进度
...@@ -182,7 +183,18 @@ namespace Edu.WebApi.Timers ...@@ -182,7 +183,18 @@ namespace Edu.WebApi.Timers
{ {
if (Interlocked.Exchange(ref dealstudentprogress_Timer, 1) == 0) if (Interlocked.Exchange(ref dealstudentprogress_Timer, 1) == 0)
{ {
var currentDate = DateTime.Now;
string cacheData = redis.Get(dealStudentProgress);
if (string.IsNullOrEmpty(cacheData))
{
redis.Set(dealStudentProgress, Common.ConvertHelper.FormatDate(currentDate));
cacheData = Common.ConvertHelper.FormatDate(currentDate);
}
if (!string.IsNullOrEmpty(cacheData) && cacheData != Common.ConvertHelper.FormatDate(currentDate))
{
redis.Set(dealStudentProgress, Common.ConvertHelper.FormatDate(currentDate));
classModule.DealStudentCourseChapterNoModule(); classModule.DealStudentCourseChapterNoModule();
}
//处理学员进度 //处理学员进度
Interlocked.Exchange(ref dealstudentprogress_Timer, 0); Interlocked.Exchange(ref dealstudentprogress_Timer, 0);
} }
......
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