define(function (require, exports, module) { var citydata = require("./station/station_data.js"); exports.citydata = citydata; exports.cities = _(_.flatten(_.map(_.values(citydata.data), function (e) { return _.values(e); }))).mapObject(function (e) { return e.c; });; exports.identityCardTypes = { }; exports.passengerTypes = { "1": "成人", "2": "儿童", "3": "学生", "4": "残军" }; exports.tagOtnMap = { "9": "SWZ", "P": "TZ", "M": "ZY", "O": "ZE", "6": "GR", "4": "RW", "3": "YW", "2": "RZ", "1": "YZ", "0": "WZ", "*": "QT", "B": "HB" }; exports.tagRevMap = _.invert(exports.tagOtnMap); exports.seatNameMap = { "商务座": "SWZ", "特等座": "TZ", "一等座": "ZY", "二等座": "ZE", "高级软卧": "GR", "软卧": "RW", "硬卧": "YW", "软座": "RZ", "硬座": "YZ", "无座": "WZ", "混编硬座": "HB" }; exports.seatNameInvMap = _.invert(exports.seatNameMap); exports.baseUri = "https://kyfw.12306.cn/otn/"; exports.queryBaseUri = "https://dynamic.12306.cn/otsquery/"; exports.toSeatTypeName = function (code) { return exports.seatNameInvMap[exports.tagOtnMap[code]]; }; exports.seatDisplayOrder = '9PMO643210'.split(''); exports.isDebug = ((function () { return false; }) + '').indexOf("false;") != -1; exports.log = function() { if (!exports.isDebug) return; console.log.apply(console, Array.prototype.slice.call(arguments)); }; });