Commit 9cc7a8e0 authored by 黄奎's avatar 黄奎

页面修改

parent dbda263b
......@@ -363,6 +363,11 @@ namespace DotnetSpider.Spiders.Model
/// </summary>
public string KeyInfo { get; set; }
/// <summary>
/// 直客价
/// </summary>
public decimal B2CPrice { get; set; }
/// <summary>
/// 行程特色
/// </summary>
......
......@@ -155,7 +155,9 @@ namespace DotnetSpider.Spiders.Rules.SouthSastRule
keyInfo.Add("code", x["prodNo"].ToString());
keyInfo.Add("travelCode", x["travelCode"].ToString());
keyInfo.Add("travelName", x["travelName"].ToString());
SouthEastServicer.TRAVEL_CONFIGS.Add(new RB_Travel_Config
var price = x["price"].ToObject<JObject>();
decimal.TryParse(price["b2cPrice"].ToString(), out decimal b2cPrice);
var config = new RB_Travel_Config
{
RealLink = string.Format("https://trip.settour.com.tw/taiwan/product/{0}", x["prodNo"].ToString()),
KeyInfo = keyInfo.ToString(),
......@@ -187,8 +189,10 @@ namespace DotnetSpider.Spiders.Rules.SouthSastRule
TravelState = 1,
UpdateBy = 0,
VideoStr = string.Empty,
YSeat = 20
});
YSeat = 20,
B2CPrice=b2cPrice
};
SouthEastServicer.TRAVEL_CONFIGS.Add(config);
}
}
}
......
......@@ -22,7 +22,7 @@ namespace DotnetSpider.Spiders.Rules.SouthSastRule
{
URL = "https://gql.settour.com.tw/graphql",
StartDate = DateTime.Now.AddDays(1).ToString("yyyyMMdd"),
EndDate = DateTime.Now.AddDays(2).ToString("yyyyMMdd"),
EndDate = DateTime.Now.AddDays(1).ToString("yyyyMMdd"),
TotalPage = 1,
Origin= "https://trip.settour.com.tw"
};
......@@ -46,12 +46,10 @@ namespace DotnetSpider.Spiders.Rules.SouthSastRule
//await SouthEastProdHtmlDetailsSpider.RunAsync();
Console.WriteLine("COnfig:" + Newtonsoft.Json.JsonConvert.SerializeObject(TRAVEL_CONFIGS));
Console.WriteLine("********* SouthEastService_End ************");
//保存数据
await SouthEastStorageSpider.RunAsync();
Console.WriteLine("********* SouthEastService_End ************");
}
}
......
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