Commit 1600d531 authored by 黄奎's avatar 黄奎

no message

parent 98ac668e
......@@ -37,15 +37,15 @@ namespace EduSpider.Spiders.SchoolHouseKeeper
int pageCount;
string url = "https://tms11.xiaogj.com/api/Shift/Query";
var request= Utility.SchoolHttpHelper.GenerateHttp(cookie);
string query = string.Format("PageIndex=1&PageSize=10");
var content = new StringContent(VTX.FW.Helper.JsonHelper.Serialize(pageModel), System.Text.Encoding.GetEncoding("UTF-8"), "application/json");
var response = await request.PostAsync(url, content);
var result12 = response.Content.ReadAsStringAsync().Result;
Console.WriteLine("111" + result12);
//var request= Utility.SchoolHttpHelper.GenerateHttp(cookie);
//string query = string.Format("PageIndex=1&PageSize=10");
//var content = new StringContent(VTX.FW.Helper.JsonHelper.Serialize(pageModel), System.Text.Encoding.GetEncoding("UTF-8"), "application/json");
//var response = await request.PostAsync(url, content);
//var result12 = response.Content.ReadAsStringAsync().Result;
//Console.WriteLine("111" + result12);
string result = "";
//result = Utility.SchoolHttpHelper.HttpPost(url, VTX.FW.Helper.JsonHelper.Serialize(pageModel), "application/json", cookie); ;
string result;
result = Utility.SchoolHttpHelper.HttpPost(url, VTX.FW.Helper.JsonHelper.Serialize(pageModel), "application/json", cookie); ;
List<SchoolCourseItem> list = new List<SchoolCourseItem>();
if (!string.IsNullOrEmpty(result))
{
......
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