# 1001 Taxi Services Dynamics
# 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 | |
| car_kind_count | Reference status requirements | uint32 | Select the number of models. If you enter zero, this information is not displayed | |
| license_plate | Reference status requirements | string | The license plate number | A license plate format verification will be carried out |
| arrival_time | Reference status requirements | uint32 | Estimated time of arrival at boarding point (cur_status is 2 hours), estimated time of arrival at destination (cur_status is 6 hours) | Second-level timestamps, displayed in HH: mm format |
| car_color | Reference status requirements | string | Vehicle color | Up to two visible characters, such as "white" and "gray" |
| pay_amount | Reference status requirements | uint32 | Amount paid | Units are divided |
| distance_to_passenger | Reference status requirements | uint32 | Distance from where the passengers boarded the bus | The unit is m. |
| distance_to_destination | Reference status requirements | uint32 | Distance from destination | The unit is m. |
Form verification of license plate numbers
- A minimum of 7 visible characters, maximum of 8 visible characters
- The first Chinese character needs to be chosen "Beijing, Tianjin, Shanghai, Chongqing, Southwest, Yuzhou, Yuzhou and Sichuan, Shaanxi, Jilin, Yun, Min, Eous, Lu, Jin, Gangui, Gangui and Yun, Qing, Mun, Tibet and Ning, New Empire."
- All characters except the first character and the last character / character need to hit [A-Z][0-9]
- The last character / character needs to hit [A-Z][0-9] "Study Hong Kong and Macao." "
- Supports incoming null values ("")
Examples: "Yue A12345," "Yue A123456," "Yue A1234 Learning," "Yue A12345 Learning"
# 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 | 1 | Calling in a vehicle | car_kind_count wxa_path_query | "{\"cur_status\":1,\"car_kind_count\":3,\"wxa_path_query\":\"pages/index/index\"}" | |
| 2 | yes | 1, 2, 4 | The driver went to the point of boarding. | license_plate arrival_time wxa_path_query | distance_to_passenger | "{\" cur_status\ ": 2,\" license_plate\ ":\" guangdongA1245A\",\"arrival_time\":1696157643,\"distance_to_passenger\":1500,\ "wxa_path_query\":\ "pages / index / index\"} " |
| 3 | no | 1, 2, 4, 5, 6 | Order cancelled | wxa_path_query | "{\"cur_status\":3,\"wxa_path_query\":\"pages/index/index\"}" | |
| 4 | no | 2, 4, 5 | Recall in the vehicle | car_kind_count wxa_path_query | "{\"cur_status\":4,\"car_kind_count\":3,\"wxa_path_query\":\"pages/index/index\"}" | |
| 5 | no | 1, 2, 4 | The driver arrived at the bus stop | license_platecar_color wxa_path_query | "{" cur_status": 5,"license_plate":"Canton A1245A,""car_color":"White,""wxa_path_query":"pages / index / INDEX\"" | |
| 6 | no | 5, 6 | Heading to a destination | arrival_time wxa_path_query | distance_to_destination | "{\"cur_status\":6,\"arrival_time\":1696157643,\"arrival_time\":1696157643, \"distance_to_destination\":1000, \"wxa_path_query\":\"pages/index/index\"}" |
| 7 | no | 6 | Payment is due at the end of the trip | pay_amount wxa_path_query | "{\"cur_status\":7,\"pay_amount\":10000,\"wxa_path_query\":\"pages/index/index\"}" | |
| 8 | no | 6, 7 | Payment was made at the end of the trip | pay_amount wxa_path_query | "{\"cur_status\":8,\"pay_amount\":9000,\"wxa_path_query\":\"pages/index/index\"}" |
"Can be changed from previous state" specification
- The numbers in this column indicate that the current state can only be changed by these states (this is not required when activating)
- 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
- A state id that does not exist in this column, meaning the end state, and the service state is no longer updatable
# Ext_json definition
| parameter | Is it compulsory? | type | Introductions | Format requirements |
|---|---|---|---|---|
| pay_info | yes | object | Payment Information |
Pay_info Definition
| parameter | Is it compulsory? | type | Introductions | Format requirements |
|---|---|---|---|---|
| transaction_id | yes | string | WeChat Payment Order Number For the combined payment scenario, only the order number passed in to the first suborder is currently supported | |
| pay_amount | yes | unit32 | The actual amount of the order, if the order has a discount, enter the amount after the discount If it is the first sub-order paid for by the combined order, enter the total actual amount paid for by the combined order | Units are divided |
| pay_time | yes | uint32 | Payment time | Second-level time stamp |