Commit 4a055a57 authored by 黄奎's avatar 黄奎

1111

parent 90e83d59
......@@ -154,7 +154,9 @@ namespace TicketSpider.Spiders.ClassInRule
VTX.FW.Helper.LogHelper.WriteInfo("RunAsync", $"获取cooki失败,{ex.Message}");
Console.WriteLine($"获取cooki失败,{ex.Message}");
}
driver.Close();
driver.Quit();
driver.Dispose();
Console.WriteLine("完成登录...");
VTX.FW.Helper.LogHelper.WriteInfo("RunAsync", $"完成登录...");
return flag;
......
......@@ -317,23 +317,27 @@ namespace EduSpider.Spiders.ClassInRule
}
courseModel.CoverImg = coverImg;
list.Add(courseModel);
var cTeacherModel= courseTeacherRepository.GetTeacherCourseListRepository(new Model.Query.CourseQuery()
if (courseModel.TeacherUid > 0)
{
CourseId = courseModel.CourseId,
TeacherIds=courseModel.TeacherUid.ToString()
}).FirstOrDefault();
int newId =Convert.ToInt32(DateTime.Now.ToString("yyyyMMdd"));
var courseTeacher = new RB_Course_Teacher()
{
id = cTeacherModel?.id ?? newId,
uid = Convert.ToInt32(courseModel.TeacherUid),
phone = courseModel.TeacherAccount,
logo = courseModel.TeacherLogo,
name = courseModel.TeacherName,
courseId = courseId,
courseTeacherId = courseModel.TeacherId
};
teacherList.Add(courseTeacher);
var cTeacherModel = courseTeacherRepository.GetTeacherCourseListRepository(new Model.Query.CourseQuery()
{
CourseId = courseModel.CourseId,
TeacherIds = courseModel.TeacherUid.ToString()
}).FirstOrDefault();
int newId = Convert.ToInt32(DateTime.Now.ToString("yyyyMMdd"));
var courseTeacher = new RB_Course_Teacher()
{
id = cTeacherModel?.id ?? newId,
uid = Convert.ToInt32(courseModel.TeacherUid),
phone = courseModel.TeacherAccount,
logo = courseModel.TeacherLogo,
name = courseModel.TeacherName,
courseId = courseId,
courseTeacherId = courseModel.TeacherId
};
teacherList.Add(courseTeacher);
}
}
}
if (list != null && list.Count > 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