Commit 088976dd authored by 黄奎's avatar 黄奎

11

parent 5b37e698
......@@ -911,6 +911,10 @@ namespace Edu.WebApi.Controllers.Course
}
message += "【" + item.EndTime + "】格式不正确!(参考格式为 00:00)";
}
if (item.TimeHour <= 0)
{
message += "消耗课时不能为 0!";
}
if (!string.IsNullOrEmpty(message))
{
return ApiResult.ParamIsNull(message: message);
......
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