京东商城上传商品透图

This commit is contained in:
苏尹岚
2020-05-26 14:08:18 +08:00
parent 697fda029e
commit d011e53203
4 changed files with 37 additions and 3 deletions

View File

@@ -1,11 +1,17 @@
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) {
_, err = a.AccessAPI("jingdong.pop.order.enGet", prodURL, map[string]interface{}{
dataMap := map[string]interface{}{
"order_id": orderID,
"optional_fields": "ALL",
"optional_fields": "orderType,payType",
}
data, _ := json.Marshal(dataMap)
_, err = a.AccessAPI("jingdong.pop.order.enGet", prodURL, map[string]interface{}{
"360buy_param_json": string(data),
})
return err
}