# 1003 City Distribution Service

# 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
product_count Reference Status Requirements uint32 Number of commodities
product_list Reference Status Requirements object Product information
arrival_Time Reference Status Requirements uint32 Estimated delivery time (cur_Status is 3 or 4 or 5 or 6 or 7 o'clock), delivery time (cur_When status is 8) Second-level timestamps, displayed in HH: mm format
distance_to_store Reference Status Requirements uint32 Distance of rider from pickup point The unit is m.
distance_to_destination Reference Status Requirements uint32 Distance from Rider to Receipt The unit is m.

product_list definition

parameter Is required type Introductions Format requirements
Info_list yes array< object&gt Product information

Info_list definition

parameter Is required type Introductions Format requirements
product_img yes string Pictures of Goods
product_Name yes string Name of Product
product_path_query yes string Product path and query
count no uint32 Number of items, the default is 1
Single_price no uint32 Unit price of goods The unit is divided

# 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 / Users have paid. product_count
product_list
wxa_path_query
"{"cur_status":1,"product_count": 1,"product_list":{"info_list":[{"product_img":"https://res.wx.qq .com /op_res/DiSd8fVjXuHr5K9U73oRr-0imv0GklZrlRRj_mZmbnO0jT349XT-qIzT_DmjQsDLSO3xZbUTbOP--HA_BosOoA","product_Name":"momo","product_path_query":"pages/index/index"}]},"wxa_path_query":"pages/index/index"}"
2 yes 1, 2 In stock product_count
product_list
wxa_path_query
arrival_Time "{"cur_status":2,"product_count": 1,"product_list":{"info_list":[{"product_img":"https://res.wx.qq .com /op_res/DiSd8fVjXuHr5K9U73oRr-0imv0GklZrlRRj_mZmbnO0jT349XT-qIzT_DmjQsDLSO3xZbUTbOP--HA_BosOoA","product_Name":"momo","product_path_query":"pages/index/index"}]},"arrival_Time": 1696157643,"wxa_path_query":"pages/index/index"}"
3 no 1, 2, 3 Waiting for Rider wxa_path_query arrival_Time "{"cur_status":3,"arrival_Time": 1696157643,"wxa_path_query":"pages/index/index"}"
4 no 1, 2, 3, 4, 7 The rider heads to the pickup point wxa_path_query arrival_Time
distance_to_store
"{"cur_status":4,"arrival_Time": 1696157643,"distance_to_store": 1500,"wxa_path_query":"pages/index/index"}"
5 no 1, 2, 3, 4, 5, 7 The rider has arrived at the pickup point wxa_path_query arrival_Time "{"cur_status":5,"arrival_Time": 1696157643,"wxa_path_query":"pages/index/index"}"
6 no 1, 2, 3, 4, 5, 6, 7 Riders in Delivery wxa_path_query arrival_Time
distance_to_destination
"{"cur_status":6,"arrival_Time": 1696157643,"distance_to_destination": 1500,"wxa_path_query":"pages/index/index"}"
7 no 4, 5, 6, 7 Delivery order cancelled, waiting for delivery again wxa_path_query arrival_Time "{"cur_status":7,"arrival_Time": 1696157643,"wxa_path_query":"pages/index/index"}"
8 no 6 Goods have been delivered wxa_path_query arrival_Time "{"cur_status":8,"arrival_Time": 1696157643,"wxa_path_query":"pages/index/index"}"
9 no 1, 2, 3, 4, 5, 6, 7, 8 Order Completed wxa_path_query "{"cur_status":9,"wxa_path_query":"pages/index/index"}"
10 no 1, 2, 3, 4, 5, 6, 7, 8 Order cancelled wxa_path_query "{"cur_status":10,"wxa_path_query":"pages/index/index"}"

Can change from previous stateIntroductions

  1. The number in this column indicates that the current state can only be changed by these states (this is not required on activation)
  2. 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
  3. 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
store_Info no object Store information
product_additional_list yes object Product additional information, and product_List sort one-to-one correspondence

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

store_Info definition

parameter Is required type Introductions Format requirements
store_Name yes string Name of store
province yes string Province/region
city yes string City
county yes string District/county
store_address no string Detailed address
store_id no uint64 Store send id If you are connectedStore delivery, the above store related information field does not need to be passed in, can be directly passed “Store id (store_id)”, if all fields are passed in, we give priority to store information for store express delivery.

product_additional_list definition

parameter Is required type Introductions Format requirements
Info_list yes array< object&gt Product Additional Information

Info_list definition

parameter Is required type Introductions Format requirements
unit_price yes uint32 Unit price of goods
number yes uint32 Number of commodities