node_12306 icon indicating copy to clipboard operation
node_12306 copied to clipboard

史上最“脑残”的“抢火车票”程序(node.js版)

Results 29 node_12306 issues
Sort by recently updated
recently updated
newest added

这个是我的json { "time": "2018-02-06", "from_station": { "name": "南京", "code": "NJH", "pinyin": "nanjing", "suoxie": "nj", "other": "54@njn" }, "end_station": { "name": "西安", "code": "XAY", "pinyin": "xian", "suoxie": "xa", "other": "69@xan" },...

json数据中没有雅安的数据

Callback must be a function at maybeCallback (fs.js:129:9) at Object.writeFile (fs.js:1159:14) at prompt.then.answer (/Users/xiaofei19/Desktop/gitRepository/node_12306-master/main.js:204:7) (node:87907) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function...

![image](https://user-images.githubusercontent.com/30678791/71331246-2bd07980-256c-11ea-9279-edb54ee8ef70.png) 添加回调

![image](https://user-images.githubusercontent.com/22444031/35545516-51c837f6-05aa-11e8-95e2-88d203642d72.png)

C:\Users\a7822\Downloads\node_12306-master>node main.js ? 输入日期-time(如:2017-01-27): 2017-02-11 ? 输入始发站拼音-from_station(如:shanghai): guangzhou ? 你选哪一个车站? 广州 ? 输入终点站拼音-end_station(如:hefei): pingnanan (没有这个车站哦,请重新输入) ? 输入终点站拼音-end_station(如:hefei): pingnannan ? 你选哪一个车站? 平南南 ? 输入车次-train_num(如:K1209,多个车次用|分开): D3786 ? 输入邮箱-your_mail(如:[email protected]): [email protected] ? 输入密码或者邮箱授权码-mail_pass: [hidden]...

如题,希望购买杭州东站的车票,发现只有杭州和杭州南

什么时候出来有自动提交订单功能,不然没什么用, 期待中。。