# 2010 Developments in Train, Bus and Boat Ticket Services

# Content_json definition

parameter Is it compulsory? 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 A combination of numbers, letters and symbols is verified.
planned_departure_time Reference status requirements uint32 Plan a departure time Second-level timestamps, displayed in MM / DDHH: mm format
planned_arrival_time Reference status requirements uint32 Plan a time to arrive Second-level timestamps, displayed in MM / DDHH: mm format
departure_city Reference status requirements uint32 City of departure Up to 11 visible characters, such as "Guangzhou" will be subject to site-station verification
arrival_city Reference status requirements uint32 Getting to the city Up to 11 visible characters, such as "Guangzhou" will be subject to site-station verification

Departure_city / arrival_city definition

parameter Is it compulsory? type Introductions Format requirements
domestic_region yes string Name of a domestic administrative region For example, "Guangzhou" supports entering the name of the fourth-level administrative district
domestic_poi no string Domestic POI Address Such as "ABC Grand Hotel"
oversea_areas yes string Name of foreign administrative region / airport For example, "Moscow," you can enter the name of a foreign city / station

Departure_city / arrival_city

  1. Check the value of domestic_region\ domestic_poi query domestic address, otherwise oversea_areas value query overseas address;
  2. Domestic_region or oversea_areas Choose one required, fill in domestic_poi must fill in domestic_poi;
  3. Domestic_poi, domestic_region, and oversea_areas are shown in order. Example: Enter "domestic_region = Guangzhou City, domestic_poi = ABC Hotel" to display "ABC Hotel";

Combined numbers, letters, and symbols verification

  1. Up to 32 visible characters
  2. All characters need to hit [A-Z] [a-z] [0-9] "_~ - /."

Examples: A101, 1234, a101, A-101

# Cur_status passes in the meaning of the state id, and the field under the different state id requires

id Is it possible for this state to be activated? Can be changed from previous state * Status Description Required fields under this state Select fields in this state Content_json example
1 yes 8, 11 Payment has been made 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 Hotel\,\" oversea_areas\ ":\" Moscow\ "},'Arrival_city': { 'domestic_region': Beijing, 'domestic-poi': People's Square, 'oversea_areas': Moscow, 'wxa_path_query': Pages / index / INDEX\ "}
2 yes 1, 8, 11 Ticket sales were successful 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 Hotel\,\" oversea_areas\ ":\" Moscow\ "},'Arrival_city': { 'domestic_region': Beijing, 'domestic-poi': People's Square, 'oversea_areas': Moscow, 'wxa_path_query': Pages / index / INDEX\ "}
3 no 1, 8, 11 Ticketing failed. wxa_path_query "{\"cur_status\":3,\"wxa_path_query\":\"pages/index/index\"}"
4 yes 2, 8, 10, 11, 12, 13 I'm going 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 Hotel\,\" oversea_areas\ ":\" Moscow\ "},'Arrival_city': { 'domestic_region': Beijing, 'domestic-poi': People's Square, 'oversea_areas': Moscow, 'wxa_path_query': Pages / index / INDEX\ "}
5 no 2, 4, 8, 10, 11, 12, 13 Start checking tickets wxa_path_query "{\"cur_status\":5,\"wxa_path_query\":\"pages/index/index\"}"
6 no 5, 8, 10, 11, 13 We have already set off. wxa_path_query "{\"cur_status\":6,\"wxa_path_query\":\"pages/index/index\"}"
7 no 6, 8, 10, 11, 13 We have arrived. wxa_path_query "{\"cur_status\":7,\"wxa_path_query\":\"pages/index/index\"}"
8 no 1, 2, 4, 5, 6, 7, 15 Ticket refunds are in place wxa_path_query "{\"cur_status\":8,\"wxa_path_query\":\"pages/index/index\"}"
9 no 8 The refund was successful. wxa_path_query "{\"cur_status\":9,\"wxa_path_query\":\"pages/index/index\"}"
10 no 8 Ticket refund failed wxa_path_query "{\"cur_status\":10,\"wxa_path_query\":\"pages/index/index\"}"
11 no 1, 2, 3, 4, 5, 6, 7, 15 A change of visa is underway. wxa_path_query "{\"cur_status\":11,\"wxa_path_query\":\"pages/index/index\"}"
12 no 11 The visa 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 Hotel\,\" oversea_areas\ ":\" Moscow\ "},'Arrival_city': { 'domestic_region': Beijing, 'domestic-poi': People's Square, 'oversea_areas': Moscow, 'wxa_path_query': Pages / index / INDEX\ "}
13 no 11 The change of visa 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 journey has been cancelled. wxa_path_query "{\"cur_status\":15,\"wxa_path_query\":\"pages/index/index\"}"

"Can be changed from previous state" specification

  1. The numbers in this column indicate that the current state can only be changed by these states (this is not required when activating)
  2. Note that changing the current state to the current state also requires the state ID to be in this column: If the current state is 1, the state is allowed to be passed to 1 at the next update only if 1 is also in this column
  3. A state id that does not exist in this column, meaning the end state, and the service state is no longer updatable