# 2010 Train tickets, car tickets, ferry ticket service dynamics
# content_json definition
parameter | Is required | type | Introductions | Format requirements |
---|---|---|---|---|
cur_status | yes | int32 | Current status id | |
wxa_path_query | yes | string | Card click the jump path and query | |
traffic_no | Reference Status Requirements | string | Train number | Numbers, letters and symbols combination check |
planned_departure_Time | Reference Status Requirements | uint32 | Planned departure time | Second time stamp, displayed as MM/DD HH: mm format |
planned_arrival_Time | Reference Status Requirements | uint32 | Planned Arrival Time | Second time stamp, displayed as MM/DD HH: mm format |
departure_city | Reference Status Requirements | uint32 | Departure city | Up to 11 visible characters, such as "Guangzhou City," will be checked by the station |
arrival_city | Reference Status Requirements | uint32 | Reaching the City | Up to 11 visible characters, such as "Guangzhou City," will be checked by the station |
departure_city/arrival_city definition
parameter | Is required | type | Introductions | Format requirements |
---|---|---|---|---|
domestic_region | yes | string | Administrative divisions of Japan | For example, "Guangzhou City," support input into the four-level administrative district name |
domestic_poi | no | string | Domestic POI Address | Such as "ABC Grand Hotel" |
oversea_areas | yes | string | Name of foreign administrative region /Name of airport | For example, "Moscow" supports the import of foreign city names./Name of station |
departure_city/arrival_city Conduct station calibration
- Inspection of domestic_regiondomestic_poi When there is a value to query the domestic address, otherwise oversea_Areas of Value Enquiry Overseas Address
- domestic_region or oversea _Select a required area, fill in domestic_POI must be filled in domestic_poi
- domestic_then、domestic _region、oversea_areas In order, displays the first values. Example: Input "domestic_Region = Gwangju City, domestic_Poi = ABC Grand Hotel ", showing "ABC Grand Hotel"
Number, letter and symbol combination check
- Up to 32 visible characters
- All characters need to hit [A-Z] [a-z] [0-9] "_-/."
Example: A101 、1234 、a101 、A-101
# cur_Status passes in the meaning of the status id, and the fields under the different status id require
id | Is this state possible when activated? | Can change from previous state* | State description | Required fields in this state | Optional field in this state | content_Example of json |
---|---|---|---|---|---|---|
1 | yes | 8, 11 | Paid | traffic_no planned_departure_Time planned_arrival_Time departure_city arrival_city wxa_path_query" | "{"cur_status":1,"traffic_no": "G100","planned_departure_Time": 1690855200,"planned_arrival_Time": 1690869600,"departure_city": {"domestic_region":"Guangzhou City", "domestic_poi":ABC Grand Hotel ",overseas _areas":"Moscow"}, "arrival_city": {"domestic_region":"Beijing City", "domestic_poi":"People's Square",overseas _areas":"Moscow","wxa_path_query":"pages/index/index"}" | |
2 | yes | 1, 8, 11 | Ticket issued successfully | traffic_no planned_departure_Time planned_arrival_Time departure_city arrival_city wxa_path_query" | "{"cur_status":2,"traffic_no": "G100","planned_departure_Time": 1690855200,"planned_arrival_Time": 1690869600,"departure_city": {"domestic_region":"Guangzhou City", "domestic_poi":ABC Grand Hotel ",overseas _areas":"Moscow"}, "arrival_city": {"domestic_region":"Beijing City", "domestic_poi":"People's Square",overseas _areas":"Moscow","wxa_path_query":"pages/index/index"}" | |
3 | no | 1, 8, 11 | Failure to issue tickets | wxa_path_query | "{"cur_status":3,"wxa_path_query":"pages/index/index"}" | |
4 | yes | 2, 8, 10, 11, 12, 13 | To travel | traffic_no planned_departure_Time planned_arrival_Time departure_city arrival_city wxa_path_query" | "{"cur_status":4,"traffic_no": "G100","planned_departure_Time": 1690855200,"planned_arrival_Time": 1690869600,"departure_city": {"domestic_region":"Guangzhou City", "domestic_poi":ABC Grand Hotel ",overseas _areas":"Moscow"}, "arrival_city": {"domestic_region":"Beijing City", "domestic_poi":"People's Square",overseas _areas":"Moscow","wxa_path_query":"pages/index/index"}" | |
5 | no | 2, 4, 8, 10, 11, 12, 13 | Start checking in | wxa_path_query | "{"cur_status":5,"wxa_path_query":"pages/index/index"}" | |
6 | no | 5, 8, 10, 11, 13 | Have set off | wxa_path_query | "{"cur_status":6,"wxa_path_query":"pages/index/index"}" | |
7 | no | 6, 8, 10, 11, 13 | Has arrived | wxa_path_query | "{"cur_status":7,"wxa_path_query":"pages/index/index"}" | |
8 | no | 1, 2, 4, 5, 6, 7, 15 | Refund | wxa_path_query | "{"cur_status":8,"wxa_path_query":"pages/index/index"}" | |
9 | no | 8 | Refund successful | wxa_path_query | "{"cur_status":9,"wxa_path_query":"pages/index/index"}" | |
10 | no | 8 | Refund failure | wxa_path_query | "{"cur_status":10,"wxa_path_query":"pages/index/index"}" | |
11 | no | 1, 2, 3, 4, 5, 6, 7, 15 | Resigning | wxa_path_query | "{"cur_status":11,"wxa_path_query":"pages/index/index"}" | |
12 | no | 11 | The change was successful | traffic_no planned_departure_Time planned_arrival_Time departure_city arrival_city wxa_path_query" | "{"cur_status":12,"traffic_no": "G100","planned_departure_Time": 1690855200,"planned_arrival_Time": 1690869600,"departure_city": {"domestic_region":"Guangzhou City", "domestic_poi":ABC Grand Hotel ",overseas _areas":"Moscow"}, "arrival_city": {"domestic_region":"Beijing City", "domestic_poi":"People's Square",overseas _areas":"Moscow","wxa_path_query":"pages/index/index"}" | |
13 | no | 11 | Change failed | wxa_path_query | "{"cur_status":13,"wxa_path_query":"pages/index/index"}" | |
14 | no | 1, 3 | Order cancelled | wxa_path_query | "{"cur_status":14,"wxa_path_query":"pages/index/index"}" | |
15 | no | 1, 2, 4, 5, 8, 10, 11, 13 | The train has been cancelled. | wxa_path_query | "{"cur_status":15,"wxa_path_query":"pages/index/index"}" |
Can change from previous stateIntroductions
- The number in this column indicates that the current state can only be changed by these states (this is not required on activation)
- It should be noted that the current state changes to the current state, but also requires the status id in this column: if the current state is 1, only if 1 is also in this column, the next update when the status is passed 1
- A state id that does not exist in this column, meaning the end state, and the service state is no longer updatable