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

页面修改

parent dc1ad233
......@@ -140,5 +140,15 @@ namespace EduSpider.Model.Entity
/// </summary>
public DateTime update_time { get; set; }
public int ref_num { get; set; }
public int refc_num { get; set; }
public decimal av_score { get; set; }
public decimal max_score { get; set; }
public decimal min_score { get; set; }
}
}
......@@ -26,7 +26,7 @@ namespace EduSpider.Spiders.ClassInRule
int perpage = 20;
var pageCount = 1;
var request = Utility.HttpHelper.GenerateHttp(cookie);
string queryStr = "page={0}&perpage={1}";
string queryStr = "page={0}&perpage={1}&analysis=1";
string paramStr = string.Format(queryStr, pageCount, perpage);
var content = new StringContent(paramStr, System.Text.Encoding.UTF8, "application/x-www-form-urlencoded");
IHomeWorkRepository homeWorkRepository = new HomeWorkRepository();
......@@ -144,6 +144,11 @@ namespace EduSpider.Spiders.ClassInRule
th_cancel = homeObj.GetString("th_cancel"),
add_time = ConvertHelper.UnixToDateTime(homeObj.GetInt("add_time")),
update_time = ConvertHelper.UnixToDateTime(homeObj.GetInt("update_time")),
ref_num = homeObj.GetInt("ref_num"),
refc_num = homeObj.GetInt("refc_num"),
av_score = homeObj.GetDecimal("av_score"),
max_score = homeObj.GetDecimal("max_score"),
min_score = homeObj.GetDecimal("min_score"),
});
}
}
......@@ -250,5 +255,7 @@ namespace EduSpider.Spiders.ClassInRule
stuHomeWorkRepository.BatchSetStuHomeWorkRepository(list);
}
}
}
}
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