京东商城店内分类修改

This commit is contained in:
苏尹岚
2020-05-27 17:04:34 +08:00
parent 153b64ef9e
commit cbf0d89455
8 changed files with 78 additions and 28 deletions

View File

@@ -1,17 +1,15 @@
package jdshopapi
import "encoding/json"
//查询单个订单
//https://open.jd.com/home/home#/doc/api?apiCateId=55&apiId=2389&apiName=jingdong.pop.order.enGet
func (a *API) EnGet(orderID int64) (err error) {
dataMap := map[string]interface{}{
"order_id": orderID,
"optional_fields": "orderType,payType",
}
data, _ := json.Marshal(dataMap)
_, err = a.AccessAPI("jingdong.pop.order.enGet", prodURL, map[string]interface{}{
"360buy_param_json": string(data),
// dataMap := map[string]interface{}{
// "order_id": orderID,
// "optional_fields": "orderType,payType",
// }
// data, _ := json.Marshal(dataMap)
_, err = a.AccessAPI("jingdong.pop.order.shipment", prodURL, map[string]interface{}{
"orderId": orderID,
})
return err
}