Commit f8c84944 authored by 罗超's avatar 罗超

新增测验抓取

parent 20c02f2f
......@@ -3,3 +3,4 @@ obj/
.vs/
EduSpider.WebApi/EduSpider.WebApi.csproj.user
EduSpider.WebApi/Properties/PublishProfiles/FolderProfile.pubxml.user
EduSpider/EduSpider.csproj.user
......@@ -18,12 +18,12 @@ namespace EduSpider.Model.Entity
/// <summary>
/// 开始作业编号
/// </summary>
public int StartHomeWorkId { get; set; }
public Int64 StartHomeWorkId { get; set; }
/// <summary>
/// 家庭作业编号
/// </summary>
public int HomeWorkId { get; set; }
public Int64 HomeWorkId { get; set; }
/// <summary>
/// 学员登录编号
......
......@@ -13,7 +13,7 @@ namespace EduSpider.Model.Entity
/// <summary>
/// 学生家庭作业主键编号
/// </summary>
public int stu_homework_id { get; set; }
public Int64 stu_homework_id { get; set; }
/// <summary>
/// admire
......
......@@ -19,7 +19,7 @@ namespace EduSpider.Model.Extend
/// <summary>
/// 作业编号
/// </summary>
public int Stu_HomeWork_Id { get; set; }
public Int64 Stu_HomeWork_Id { get; set; }
/// <summary>
/// 创建时间
......
namespace EduSpider.Model.Query
using System;
namespace EduSpider.Model.Query
{
/// <summary>
/// 课程查询实体类
......@@ -43,17 +45,17 @@
/// <summary>
/// 作业编号
/// </summary>
public int HomeWorkId { get; set; }
public Int64 HomeWorkId { get; set; }
/// <summary>
/// 开始作业编号
/// </summary>
public int StartHomeWorkId { get; set; }
public Int64 StartHomeWorkId { get; set; }
/// <summary>
/// 结束作业编号
/// </summary>
public int EndHomeWorkId { get; set; }
public Int64 EndHomeWorkId { get; set; }
/// <summary>
/// 创建类型(1-系统创建,2-老师创建)
......
......@@ -437,7 +437,7 @@ WHERE 1=1
/// <param name="CourseId"></param>
/// <param name="Stu_HomeWork_Id"></param>
/// <returns></returns>
private static RB_Stu_Comment GetSystemCreateComment(List<RB_Stu_Comment> commentList,int CourseId,int Stu_HomeWork_Id)
private static RB_Stu_Comment GetSystemCreateComment(List<RB_Stu_Comment> commentList,int CourseId,Int64 Stu_HomeWork_Id)
{
var tempModel = commentList.Where(qitem => qitem.CourseId == CourseId && qitem.HomeWorkId == Stu_HomeWork_Id && qitem.CreateType == 1).FirstOrDefault();
return tempModel;
......
......@@ -25,7 +25,8 @@ namespace EduSpider.Utility
UseCookies = true,
CookieContainer = CreateCookie(cookie),
AutomaticDecompression = DecompressionMethods.GZip,
ClientCertificateOptions = ClientCertificateOption.Automatic
ClientCertificateOptions = ClientCertificateOption.Automatic,
SslProtocols = System.Security.Authentication.SslProtocols.Tls
};
var http = new HttpClient(handler);
GenerateHttpHeader(ref http);
......
......@@ -14,11 +14,6 @@
<ItemGroup>
<Compile Remove="Spiders\CityService.cs" />
<Compile Remove="Spiders\EasterLineRule\AccountManagerHelper.cs" />
<Compile Remove="Spiders\EasterLineRule\CookiesHelper.cs" />
<Compile Remove="Spiders\EasterLineRule\PassengerHelper.cs" />
<Compile Remove="Spiders\EasterLineRule\QueryFlightHelper.cs" />
<Compile Remove="Spiders\EasterLineRule\TicketOrderHelper.cs" />
</ItemGroup>
<ItemGroup>
......@@ -30,11 +25,6 @@
<Content Include="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Spiders\EasterLineRule\AccountManagerHelper.cs" />
<Content Include="Spiders\EasterLineRule\CookiesHelper.cs" />
<Content Include="Spiders\EasterLineRule\PassengerHelper.cs" />
<Content Include="Spiders\EasterLineRule\QueryFlightHelper.cs" />
<Content Include="Spiders\EasterLineRule\TicketOrderHelper.cs" />
</ItemGroup>
......
......@@ -45,8 +45,13 @@ namespace TicketSpider.Spiders.ClassInRule
HomeWorkManager.RunHomeWork(loginCookies);
Console.WriteLine("作业信息更新结束");
VTX.FW.Helper.LogHelper.WriteInfo("StartAsync", "作业信息更新结束");
Console.WriteLine("开始获取测验信息");
VTX.FW.Helper.LogHelper.WriteInfo("StartAsync", "开始测验信息");
QuestionManager.RunHomeWork(loginCookies);
Console.WriteLine("测验信息更新结束");
VTX.FW.Helper.LogHelper.WriteInfo("StartAsync", "测验信息更新结束");
}
......
This diff is collapsed.
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