# 1001 Taxi 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 | |
car_kind_count | Reference Status Requirements | uint32 | Select the number of models, if passed 0 does not show this information | |
License_plate | Reference Status Requirements | string | License plate number | Will run a license plate format verification |
arrival_Time | Reference Status Requirements | uint32 | Estimated time of arrival (cur_Status is 2 o'clock), estimated time of arrival (cur_Status at 6: 00) | Second-level timestamps, displayed in HH: mm format |
car_color | Reference Status Requirements | string | Vehicle color | Up to two visible characters, such as "white," "gray" |
pay_amount | Reference Status Requirements | uint32 | Amount paid | The unit is divided |
distance_to_passenger | Reference Status Requirements | uint32 | Distance from passenger boarding point | The unit is m. |
distance_to_destination | Reference Status Requirements | uint32 | Distance from destination | The unit is m. |
License plate format verification
- Minimum of 7 visible characters, maximum of 8 visible characters
- The first Chinese character needs to hit "Beijing, Tianjin, Shanghai, Chongqing, Jiangsu, Zhejiang, Henan, Guangdong, Sichuan, Shaanxi, Liaoning, Jilin, Anhui, Fujian, Hubei, Hunan, Shandong, Shanxi, Jiangxi, Guizhou, Gansu, Guangxi, Hainan, Yunnan, Mongolia, Mongolia, Tibet, Ningxia, Mongolia, Tibet and Ningxia"
- In addition to the first and last kanji/Characters, other characters need to hit[A-Z][0-9]
- The Last Kanji/Character needs to hit[A-Z][0-9]"Study in Hong Kong and Macao"
- Support for incoming null values ("")
Examples: "Yue A12345," "Yue A123456," "Yue A1234 Learning," "Yue A12345 Learning"
# 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 | 1 | Calling 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 car. | License_plate arrival_Time wxa_path_query | distance_to_passenger | "{"cur_status":2,"license_plate":"Yue A1245A","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 | Re-call 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 arrives at the pick-up point | License_Platecar _color wxa_path_query | "{"cur_status":5,"license_plate":"Yue A1245A","car_color":"white","wxa_path_query":"pages/index/index"}" | |
6 | no | 5, 6 | To the 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 | End of trip to be paid | pay_amount wxa_path_query | "{"cur_status":7,"pay_amount":10000,"wxa_path_query":"pages/index/index"}" | |
8 | no | 6, 7 | Trip Ended Paid | pay_amount wxa_path_query | "{"cur_status":8,"pay_amount":9000,"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
# ext_json definition
parameter | Is required | type | Introductions | Format requirements |
---|---|---|---|---|
pay_Info | yes | object | Payment information |
pay_Info definition
parameter | Is required | type | Introductions | Format requirements |
---|---|---|---|---|
transaction_id | yes | string | Weixin Pay order number For the single payment scenario, currently only support the use of the first single order number | |
pay_amount | yes | Unit 32 | Order actual payment amount, if the order has a discount, need to pass in the discount amount If it is the first sub-order of the joint payment, the total actual payment amount of the joint payment needs to be passed in. | The unit is divided |
pay_Time | yes | uint32 | Payment time | Second time stamp |