1
This commit is contained in:
@@ -88,7 +88,7 @@ func (a *API) AccessAPI(action string, url string, bizParams map[string]interfac
|
|||||||
|
|
||||||
func (a *API) GetStationList() (err error) {
|
func (a *API) GetStationList() (err error) {
|
||||||
params := make(map[string]interface{})
|
params := make(map[string]interface{})
|
||||||
params["platformName"] = a.platformName
|
// params["platformName"] = a.platformName
|
||||||
sign := a.signParam(params)
|
sign := a.signParam(params)
|
||||||
_, err = a.AccessAPI("oreo/ejiayou_open_api/stations/v2/"+a.platformName+"/"+sign+"/"+utils.Int64ToStr(a.timeStamp), TestUrl, nil)
|
_, err = a.AccessAPI("oreo/ejiayou_open_api/stations/v2/"+a.platformName+"/"+sign+"/"+utils.Int64ToStr(a.timeStamp), TestUrl, nil)
|
||||||
return err
|
return err
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ type GetOrderResult struct {
|
|||||||
} `json:"itemInfoList"`
|
} `json:"itemInfoList"`
|
||||||
StoreID string `json:"storeId"`
|
StoreID string `json:"storeId"`
|
||||||
OrderTotalPrice string `json:"orderTotalPrice"`
|
OrderTotalPrice string `json:"orderTotalPrice"`
|
||||||
// OrderExt string `json:"orderExt"`
|
OrderExt OrderExt `json:"orderExt"`
|
||||||
StoreOrder string `json:"storeOrder"`
|
StoreOrder string `json:"storeOrder"`
|
||||||
OrderStartTime string `json:"orderStartTime"`
|
OrderStartTime string `json:"orderStartTime"`
|
||||||
OrderID string `json:"orderId"`
|
OrderID string `json:"orderId"`
|
||||||
@@ -103,6 +103,14 @@ type GetOrderResult struct {
|
|||||||
MenDianID string `json:"menDianId"`
|
MenDianID string `json:"menDianId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type OrderExt struct {
|
||||||
|
O2ODeliveryTime string `json:"o2oDeliveryTime"`
|
||||||
|
AerfaTimeIDSopShipmentType string `json:"aerfaTime.idSopShipmentType"`
|
||||||
|
StoreName string `json:"storeName"`
|
||||||
|
Road string `json:"road"`
|
||||||
|
Contact string `json:"contact"`
|
||||||
|
}
|
||||||
|
|
||||||
//查询单个订单
|
//查询单个订单
|
||||||
//https://open.jd.com/home/home#/doc/api?apiCateId=55&apiId=4247&apiName=jingdong.pop.order.get
|
//https://open.jd.com/home/home#/doc/api?apiCateId=55&apiId=4247&apiName=jingdong.pop.order.get
|
||||||
func (a *API) GetOrder(orderID int64, isStatus bool) (getOrderResult *GetOrderResult, err error) {
|
func (a *API) GetOrder(orderID int64, isStatus bool) (getOrderResult *GetOrderResult, err error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user