This commit is contained in:
苏尹岚
2020-11-20 17:57:08 +08:00
parent 264d1ea1ea
commit 4b45246898
3 changed files with 26 additions and 9 deletions

View File

@@ -10,6 +10,7 @@ import (
"net/url"
"regexp"
"strings"
"time"
"git.rosy.net.cn/baseapi"
"git.rosy.net.cn/baseapi/platformapi"
@@ -1103,3 +1104,17 @@ func (a *API) GetJdTopSkus(vendorStoreID string, currentPage int) (vendorSkuIDs
}
return vendorSkuIDs, totalCount, err
}
//获取京东的门店信息
func (a *API) GetJdStoreInfo(vendorStoreID string) (err error) {
jdParams := map[string]interface{}{
"_djrandom": time.Now().UnixNano(),
"functionId": "store/storeDetailV220",
"body": `{"storeId":"` + vendorStoreID + `"}`,
"appVersion": "8.3.0",
"appName": "paidaojia",
"platCode": "H5",
}
_, err = a.AccessStorePage2("http://www.jxc4.com/jd/client", jdParams, false, "")
return err
}