Skip to content

Commit

Permalink
merge #22
Browse files Browse the repository at this point in the history
  • Loading branch information
jokermonn committed Sep 11, 2017
1 parent 08cc7ed commit d68b197
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions 12306.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@

请求方式:`GET`

url:`https://kyfw.12306.cn/otn/leftTicket/query`
~~url:`https://kyfw.12306.cn/otn/leftTicket/query`~~

ps:12306 网页版的 api 不是很稳定,定期会更改,更改套路是上面 url 中的 `leftTicket/query` 后面可能会增加一个大写的字母。例如: `https://kyfw.12306.cn/otn/leftTicket/queryA`,此时返回的 json 中有一个 `c_url` 字段,将其拼接在 `https://kyfw.12306.cn/otn/` 后就是最新的 api 接口。可见 [issue#1](https://github.com/jokermonn/-Api/issues/1)
url:`https://kyfw.12306.cn/otn/leftTicket/queryX`

ps:12306 网页版的 api 不是很稳定,定期会更改,更改套路是上面 url 中的 `leftTicket/query` 后面可能会增加一个大写的字母。例如: `https://kyfw.12306.cn/otn/leftTicket/queryA`,此时返回的 json 中有一个 `c_url` 字段,将其拼接在 `https://kyfw.12306.cn/otn/` 后就是最新的 api 接口。可见 [issue#1](https://github.com/jokermonn/-Api/issues/1)[issue#22](https://github.com/jokermonn/-Api/issues/22)

参数:

Expand Down

0 comments on commit d68b197

Please sign in to comment.