多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
### 订单状态查询 --- >[success] **返回结果的 status 为 2 时,订单占位成功,可进行支付** > ----- >* 0:刚提交,待处理;处理完将变成1或2; > * 1:失败/失效/取消的订单; > * 2:占座成功待支付(此时可取消订单,超时不支付将失效); > * 3:支付成功待出票; > * 4:出票成功; > * 5:出票失败;关于出票失败的问题,请阅读 http://code.juhe.cn/docs/201 中第33条 > * 6:正在处理线上退票请求;请阅读 http://code.juhe.cn/docs/201 中第16、17、18条 > * 7:有乘客退票(改签)成功(status保存的是最后一次操作该订单后的状态,先有乘客退票失败,然后有乘客退票成功,那么status为7); > * 8:有乘客退票失败(status保存的是最后一次操作该订单后的状态,先有乘客退票成功,然后有乘客退票失败,那么status为8); ~~~[api] post:data/order/query *string:orderid=JH153803523396289#订单ID,提交订单后可获取 <<< success { "code": 1, "info": "获取订单状态成功!", "data": { "orderid": "JH153793020681773", "user_orderid": "15379302063321", "msg": "订单失效", "orderamount": "441.00", "status": "1", "passengers": [ { "mid": "1", "orderno": "15379302063321", "passengerid": 1, "passengersename": "夏俊杰", "piaotype": "1", "piaotypename": "成人票", "passporttypeseid": "1", "passporttypeseidname": "二代身份证", "passportseno": "441283199207115370", "price": "441.0", "zwcode": "3", "zwname": "硬卧", "ticket_no": "EA656415321140012", "cxin": "14车厢,01座中铺", "reason": 0 } ], "checi": "Z202", "ordernumber": "EA65641532", "submit_time": "2018-09-26 10:50:06", "deal_time": "2018-09-26 11:51:10", "cancel_time": null, "pay_time": null, "finished_time": null, "refund_time": null, "juhe_refund_time": null, "start_time": "2018-09-27 08:28:00", "arrive_time": "2018-09-28 06:46:00", "runtime": "22:18", "train_date": "2018-09-27", "from_station_name": "广州", "from_station_code": "GZQ", "to_station_name": "北京西", "to_station_code": "BXP", "refund_money": null, "statusinfo": "失败/失效/取消的订单" } } <<< error ~~~