未起售车次也纳入考虑范围

This commit is contained in:
iFish 2014-09-05 12:37:07 +08:00
parent d3be7ba71d
commit b8f92967eb

View File

@ -197,8 +197,8 @@
//没有选择,则不考虑
if (!selectedTrain.test(t.code))
return false;
//始发终到或未起售,不考虑
if ((t.from.endpoint && t.to.endpoint) || t.available < 0)
//始发终到,不考虑
if (t.from.endpoint && t.to.endpoint)
return false;
//如果设置了席别,并且设置的席别都没有,则不考虑