京东商城店内分类修改
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user