允许对未起售车次进行建议
This commit is contained in:
parent
f2cfba8d2f
commit
e9dbcfc572
@ -131,7 +131,7 @@ namespace Web12306
|
||||
PreProcessRequestData(ri);
|
||||
|
||||
//获得所有的可替换站点
|
||||
var alllines = ri.Stops.Values.SelectMany(s => GetAlternativeLines(s, ri.Date)).ToArray();
|
||||
var alllines = ri.Stops.Values.SelectMany(s => GetAlternativeLines(s, ri.Date)).Where(s => s != null).ToArray();
|
||||
|
||||
//对线路进行分组排序
|
||||
var lineGrouped = alllines.GroupBy(s => s.LineName).Select(s =>
|
||||
@ -668,7 +668,7 @@ namespace Web12306
|
||||
{
|
||||
if (Key != "stupid360")
|
||||
return true;
|
||||
if (Stops.Values.Any(s => (s.TrainInfo.code == s.TrainInfo.from.code && s.TrainInfo.to.code == s.TrainInfo.end.code) || s.TrainInfo.available < 0))
|
||||
if (Stops.Values.Any(s => (s.TrainInfo.code == s.TrainInfo.from.code && s.TrainInfo.to.code == s.TrainInfo.end.code)))
|
||||
return true;
|
||||
|
||||
//add 2014年9月4日 - 检测非法席别
|
||||
@ -676,7 +676,7 @@ namespace Web12306
|
||||
return true;
|
||||
if (SelectedSeats.Length > 0)
|
||||
{
|
||||
if (Stops.Values.Any(s => !SelectedSeats.Any(x => s.TrainInfo.ticketMap.ContainsKey(x[0]))))
|
||||
if (Stops.Values.Any(s => !SelectedSeats.Any(x => s.TrainInfo.ticketMap.ContainsKey(x[0]))))
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user