Commit 0e43823a authored by 黄奎's avatar 黄奎

页面修改

parent 9c60995d
...@@ -358,5 +358,10 @@ namespace DotnetSpider.Spiders.Model ...@@ -358,5 +358,10 @@ namespace DotnetSpider.Spiders.Model
/// 关键信息 /// 关键信息
/// </summary> /// </summary>
public string KeyInfo { get; set; } public string KeyInfo { get; set; }
/// <summary>
/// 是否同步
/// </summary>
public int IsSynchronous { get; set; }
} }
} }
...@@ -47,17 +47,20 @@ namespace DotnetSpider.Spiders ...@@ -47,17 +47,20 @@ namespace DotnetSpider.Spiders
//ʨ //ʨ
//await new LionService().RunAsync(); //await new LionService().RunAsync();
Console.WriteLine("ʨ****End");
//ϲ //ϲ
//await new BestService().RunAsync(); //await new BestService().RunAsync();
//Console.WriteLine("ϲ****End");
// //
//await new BwtService().RunAsync(); await new BwtService().RunAsync();
Console.WriteLine("****End");
// //
await new SouthEastServicer().RunAsync(); //await new SouthEastServicer().RunAsync();
Console.WriteLine("End..."); Console.WriteLine("****End");
Environment.Exit(0); Environment.Exit(0);
} }
} }
......
...@@ -45,7 +45,7 @@ namespace DotnetSpider.Spiders.Rules.BestRule ...@@ -45,7 +45,7 @@ namespace DotnetSpider.Spiders.Rules.BestRule
{ {
var request = new Request($"https://travel-api.ittms.com.tw/travel/getmany/v1"); var request = new Request($"https://travel-api.ittms.com.tw/travel/getmany/v1");
request.Method = "POST"; request.Method = "POST";
var param = $"date_to=2020/12/31&available_flag=&special_icon_code=&data_type=1&date=20200716162954&travel_list_code=11&ittms_code=C000061&takeoff_city=&page_count=100&travel_list=&sort_type=D&account=IttmsApp&date_from=2020/07/18&page={i}&travel_title=&checksum=362073AB28"; var param = $"date_to=2020/12/31&available_flag=&special_icon_code=&data_type=1&date=20200716162954&travel_list_code=11&ittms_code=C000061&takeoff_city=&page_count=100&travel_list=&sort_type=D&account=IttmsApp&date_from=2020/07/18&page={i}&travel_title=&checksum=7242FBC6E3";
var content = new StringContent(param, "application/x-www-form-urlencoded", "UTF-8"); var content = new StringContent(param, "application/x-www-form-urlencoded", "UTF-8");
request.Content = MessagePackSerializer.Typeless.Serialize(content); request.Content = MessagePackSerializer.Typeless.Serialize(content);
requests.Add(request); requests.Add(request);
......
...@@ -39,7 +39,7 @@ namespace DotnetSpider.Spiders.Rules.BestRule ...@@ -39,7 +39,7 @@ namespace DotnetSpider.Spiders.Rules.BestRule
AddDataFlow(new PagerParser()); AddDataFlow(new PagerParser());
var request = new Request($"https://travel-api.ittms.com.tw/travel/getmany/v1"); var request = new Request($"https://travel-api.ittms.com.tw/travel/getmany/v1");
request.Method = "POST"; request.Method = "POST";
var param= "date_to=2020/12/31&available_flag=&special_icon_code=&data_type=1&date=20200716162954&travel_list_code=11&ittms_code=C000061&takeoff_city=&page_count=5000&travel_list=&sort_type=D&account=IttmsApp&date_from=2020/07/18&page=1&travel_title=&checksum=362073AB28"; var param= "date_to=2020/12/31&available_flag=&special_icon_code=&data_type=1&date=20200716162954&travel_list_code=11&ittms_code=C000061&takeoff_city=&page_count=5000&travel_list=&sort_type=D&account=IttmsApp&date_from=2020/07/18&page=1&travel_title=&checksum=7242FBC6E3";
var content = new StringContent(param, "application/x-www-form-urlencoded", "UTF-8"); var content = new StringContent(param, "application/x-www-form-urlencoded", "UTF-8");
request.Content = MessagePackSerializer.Typeless.Serialize(content); request.Content = MessagePackSerializer.Typeless.Serialize(content);
......
...@@ -51,7 +51,7 @@ namespace DotnetSpider.Spiders.Rules.BestRule ...@@ -51,7 +51,7 @@ namespace DotnetSpider.Spiders.Rules.BestRule
{ {
BestService.TRAVEL_CONFIGS.ForEach(x => { BestService.TRAVEL_CONFIGS.ForEach(x => {
var keys = JObject.Parse(x.KeyInfo); var keys = JObject.Parse(x.KeyInfo);
var param = $"travel_no={keys["no"].ToString()}&date_to=&data_type=4&date=20200716162954&ittms_code={keys["code"].ToString()}&takeoff_city=&page_count=50&travel_list=&country=&sort_type=D&account=IttmsApp&date_from=&page=&travel_title=&checksum=362073AB28&keywords=&"; var param = $"travel_no={keys["no"].ToString()}&date_to=&data_type=4&date=20200716162954&ittms_code={keys["code"].ToString()}&takeoff_city=&page_count=50&travel_list=&country=&sort_type=D&account=IttmsApp&date_from=&page=&travel_title=&checksum=7242FBC6E3&keywords=&";
var content = new StringContent(param, "application/x-www-form-urlencoded", "UTF-8"); var content = new StringContent(param, "application/x-www-form-urlencoded", "UTF-8");
var request = new Request("https://travel-api.ittms.com.tw/travel/getmany/v1?id="+x.AgentId) var request = new Request("https://travel-api.ittms.com.tw/travel/getmany/v1?id="+x.AgentId)
{ {
......
...@@ -50,7 +50,7 @@ namespace DotnetSpider.Spiders.Rules.BestRule ...@@ -50,7 +50,7 @@ namespace DotnetSpider.Spiders.Rules.BestRule
{ {
BestService.TRAVEL_CONFIGS.ForEach(x => { BestService.TRAVEL_CONFIGS.ForEach(x => {
var keys = JObject.Parse(x.KeyInfo); var keys = JObject.Parse(x.KeyInfo);
var param = $"travel_title_key={x.AgentId}&date_to=2021/07/15&available_flag=&special_icon_code=&data_type=1&date=20200716162954&ittms_code={keys["code"].ToString()}&takeoff_city=&page_count=5000&travel_list=&sort_type=D&account=IttmsApp&date_from=2020/07/16&page=1&travel_title={x.Title}&checksum=362073AB28&"; var param = $"travel_title_key={x.AgentId}&date_to=2021/07/15&available_flag=&special_icon_code=&data_type=1&date=20200716162954&ittms_code={keys["code"].ToString()}&takeoff_city=&page_count=5000&travel_list=&sort_type=D&account=IttmsApp&date_from=2020/07/16&page=1&travel_title={x.Title}&checksum=7242FBC6E3&";
var content = new StringContent(param, "application/x-www-form-urlencoded", "UTF-8"); var content = new StringContent(param, "application/x-www-form-urlencoded", "UTF-8");
var request = new Request("https://travel-api.ittms.com.tw/travel/getmany/v1?id=" + x.AgentId) var request = new Request("https://travel-api.ittms.com.tw/travel/getmany/v1?id=" + x.AgentId)
{ {
......
...@@ -156,7 +156,8 @@ namespace DotnetSpider.Spiders.Rules.BwtRule ...@@ -156,7 +156,8 @@ namespace DotnetSpider.Spiders.Rules.BwtRule
TravelState = 1, TravelState = 1,
UpdateBy = 0, UpdateBy = 0,
VideoStr = string.Empty, VideoStr = string.Empty,
YSeat = 20 YSeat = 20,
B2CPrice = 0,
}; };
BwtService.TRAVEL_CONFIGS.Add(exsit); BwtService.TRAVEL_CONFIGS.Add(exsit);
} }
......
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