尝试获取京东商城订单

This commit is contained in:
苏尹岚
2020-06-29 14:45:54 +08:00
parent 2641c0ac1b
commit 62f9947573
4 changed files with 28 additions and 9 deletions

View File

@@ -36,3 +36,13 @@ func (a *API) GetDeliveryCompany() (result interface{}, err error) {
}
return result, err
}
//查询单个订单
//https://open.jd.com/home/home#/doc/api?apiCateId=55&apiId=4247&apiName=jingdong.pop.order.get
func (a *API) GetOrder(orderID int64) (err error) {
_, err = a.AccessAPI("jingdong.pop.order.get", prodURL, map[string]interface{}{
"order_id": orderID,
"optional_fields": "orderType,payType,orderTotalPrice,orderSellerPrice,orderPayment,freightPrice",
})
return err
}