[TOC]
共15个有效参数!
# (一)原始文件
```
Array
(
[data] => {"from_station_name":"上海西","from_station_code":"SXH","to_station_name":"上海","to_station_code":"SHH","train_date":"2017-12-20","orderid":"JH151244353295095","user_orderid":"201712051112126251092","orderamount":"8.50","ordernumber":"E945792608","checi":"G7033","msg":"线上退票成功","status":"7","passengers":[{"passengerid":"68","passengersename":"杨红伟","piaotype":1,"piaotypename":"成人票","passporttypeseid":"1","passporttypeseidname":"二代身份证","passportseno":"142201198311174558","price":"8.5","zwcode":"O","zwname":"二等座","ticket_no":"E945792608101002B","cxin":"01车厢,02B座","reason":0,"returntickets":{"returnsuccess":true,"returnmoney":"8.5","returntime":"2017-12-05 18:01:39","returnfailid":"","returnfailmsg":"","returntype":"1"},"refundTimeline":[{"time":"2017-12-05 18:01:00","msg":"线上申请退票"},{"time":"2017-12-05 18:01:39","msg":"线上退票成功","detail":{"returnsuccess":true,"returnmoney":"8.5","returnfailid":"","returnfailmsg":"","returntype":"1","ticket_no":"E945792608101002B","passengername":"杨红伟","passporttypeseid":"1","passportseno":"142201198311174558"}}]}],"refund_money":"8.50","sign":"2d678b2f8f503d5d4a7366edade00d27"}
)
```
# (二)整理原始文件
```
Array
(
[data] => {
"from_station_name":"上海西",
"from_station_code":"SXH",
"to_station_name":"上海",
"to_station_code":"SHH",
"train_date":"2017-12-20",
"orderid":"JH151244353295095",
"user_orderid":"201712051112126251092",
"orderamount":"8.50",
"ordernumber":"E945792608",
"checi":"G7033",
"msg":"线上退票成功",
"status":"7",
"passengers":[{"passengerid":"68","passengersename":"杨红伟","piaotype":1,"piaotypename":"成人票","passporttypeseid":"1","passporttypeseidname":"二代身份证","passportseno":"142201198311174558","price":"8.5","zwcode":"O","zwname":"二等座","ticket_no":"E945792608101002B","cxin":"01车厢,02B座","reason":0,"returntickets":{"returnsuccess":true,"returnmoney":"8.5","returntime":"2017-12-05 18:01:39","returnfailid":"","returnfailmsg":"","returntype":"1"},"refundTimeline":[{"time":"2017-12-05 18:01:00","msg":"线上申请退票"},{"time":"2017-12-05 18:01:39","msg":"线上退票成功","detail":{"returnsuccess":true,"returnmoney":"8.5","returnfailid":"","returnfailmsg":"","returntype":"1","ticket_no":"E945792608101002B","passengername":"杨红伟","passporttypeseid":"1","passportseno":"142201198311174558"}}]}],
"refund_money":"8.50",
"sign":"2d678b2f8f503d5d4a7366edade00d27"
}
)
```
# (三)转换成服务器写入文件
>{"data":"{\"from_station_name\":\"\u4e0a\u6d77\u897f\",\"from_station_code\":\"SXH\",\"to_station_name\":\"\u4e0a\u6d77\",\"to_station_code\":\"SHH\",\"train_date\":\"2017-12-20\",\"orderid\":\"JH151244353295095\",\"user_orderid\":\"201712051112126251092\",\"orderamount\":\"8.50\",\"ordernumber\":\"E945792608\",\"checi\":\"G7033\",\"msg\":\"\u7ebf\u4e0a\u9000\u7968\u6210\u529f\",\"status\":\"7\",\"passengers\":[{\"passengerid\":\"68\",\"passengersename\":\"\u6768\u7ea2\u4f1f\",\"piaotype\":1,\"piaotypename\":\"\u6210\u4eba\u7968\",\"passporttypeseid\":\"1\",\"passporttypeseidname\":\"\u4e8c\u4ee3\u8eab\u4efd\u8bc1\",\"passportseno\":\"142201198311174558\",\"price\":\"8.5\",\"zwcode\":\"O\",\"zwname\":\"\u4e8c\u7b49\u5ea7\",\"ticket_no\":\"E945792608101002B\",\"cxin\":\"01\u8f66\u53a2,02B\u5ea7\",\"reason\":0,\"returntickets\":{\"returnsuccess\":true,\"returnmoney\":\"8.5\",\"returntime\":\"2017-12-05 18:01:39\",\"returnfailid\":\"\",\"returnfailmsg\":\"\",\"returntype\":\"1\"},\"refundTimeline\":[{\"time\":\"2017-12-05 18:01:00\",\"msg\":\"\u7ebf\u4e0a\u7533\u8bf7\u9000\u7968\"},{\"time\":\"2017-12-05 18:01:39\",\"msg\":\"\u7ebf\u4e0a\u9000\u7968\u6210\u529f\",\"detail\":{\"returnsuccess\":true,\"returnmoney\":\"8.5\",\"returnfailid\":\"\",\"returnfailmsg\":\"\",\"returntype\":\"1\",\"ticket_no\":\"E945792608101002B\",\"passengername\":\"\u6768\u7ea2\u4f1f\",\"passporttypeseid\":\"1\",\"passportseno\":\"142201198311174558\"}}]}],\"refund_money\":\"8.50\",\"sign\":\"2d678b2f8f503d5d4a7366edade00d27\"}"}
# (四)全部转换为数组的格式
```
Array
(
[from_station_name] => 上海西
[from_station_code] => SXH
[to_station_name] => 上海
[to_station_code] => SHH
[train_date] => 2017-12-20
[orderid] => JH151244353295095
[user_orderid] => 201712051112126251092
[orderamount] => 8.50
[ordernumber] => E945792608
[checi] => G7033
[msg] => 线上退票成功
[status] => 7
[passengers] => Array
(
[0] => Array
(
[passengerid] => 68
[passengersename] => 杨红伟
[piaotype] => 1
[piaotypename] => 成人票
[passporttypeseid] => 1
[passporttypeseidname] => 二代身份证
[passportseno] => 142201198311174558
[price] => 8.5
[zwcode] => O
[zwname] => 二等座
[ticket_no] => E945792608101002B
[cxin] => 01车厢,02B座
[reason] => 0
[returntickets] => Array
(
[returnsuccess] => 1
[returnmoney] => 8.5
[returntime] => 2017-12-05 18:01:39
[returnfailid] =>
[returnfailmsg] =>
[returntype] => 1
)
[refundTimeline] => Array
(
[0] => Array
(
[time] => 2017-12-05 18:01:00
[msg] => 线上申请退票
)
[1] => Array
(
[time] => 2017-12-05 18:01:39
[msg] => 线上退票成功
[detail] => Array
(
[returnsuccess] => 1
[returnmoney] => 8.5
[returnfailid] =>
[returnfailmsg] =>
[returntype] => 1
[ticket_no] => E945792608101002B
[passengername] => 杨红伟
[passporttypeseid] => 1
[passportseno] => 142201198311174558
)
)
)
)
)
[refund_money] => 8.50
[sign] => 2d678b2f8f503d5d4a7366edade00d27
)
```
- 回调操作
- 测试post请求
- 一:提交订单回调
- 二:请求出票回调
- 三:退票回调
- 火车票全部接口
- 1.站点简码查询
- 2.余票查询
- 3.提交订单(占座)
- 4.请求出票
- 5.订单状态查询
- 6.线上退票
- 7.历史订单查询
- 8.下载csv格式报表
- 9.取消待支付的订单
- 10.设置回调
- 11.查询账户余额
- 整理车票API
- 火车票简码采集
- 火车票相关
- 火车票相关截图
- 火车票车型
- 火车票订单
- 座位类型
- 火车票11个接口封装后
- 票的状态
- 聚合联系方式
- response不支持行内式写法
- 火车票登录接口信息
- 火车票回调
- 火车票订票接口常见问题
- 退票手续费
- 退票返回的信息
- 相关知识
- javascript 日期相减 涉及到时分秒
- 火车票订单流程
- 火车票提交
- 因公一些权限
- 工具
- 箭头
- 执行标准和政策详情
- 执行情况
- 成本中心
- miyou当前用户及政策相关信息
- 审批信息弹出
- 人员ID姓名与政策ID
- 费用
- 流程
- bookOne
- bookTwo
- booOnePost
- 旧的成本中心
- 成本中心联动
- 注意事项
- 提交返回的数据 train_all
- 选座
- 易购火车票
- 签约