Commit ddb2d729 authored by 黄奎's avatar 黄奎

页面修改

parent 64c586f3
......@@ -332,6 +332,10 @@ namespace Edu.WebApi.Controllers.Course
foreach (var item in rootItem.TimeList)
{
string message = "";
if (string.IsNullOrEmpty(item.StartTime) || string.IsNullOrEmpty(item.EndTime))
{
return ApiResult.Failed(message: "请选择【学习时段】的开始时间和结束时间!");
}
if (!Common.ConvertHelper.IsTime(item.StartTime + ":00"))
{
message = "【" + item.StartTime + "】格式不正确!(参考格式为 00:00)";
......
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