获取京东用户关联门店列表
This commit is contained in:
@@ -10,7 +10,6 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi"
|
"git.rosy.net.cn/baseapi"
|
||||||
"git.rosy.net.cn/baseapi/platformapi"
|
"git.rosy.net.cn/baseapi/platformapi"
|
||||||
@@ -542,15 +541,7 @@ func (a *API) SaveQualify(stationNo string, actionType int, qualifyList []*Quali
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (a *API) GetJdUserBindStoreIDs(userID int) (vendorStoreIDs []string, err error) {
|
func (a *API) GetJdUserBindStoreIDs(userID int) (vendorStoreIDs []string, err error) {
|
||||||
unix := time.Now().Unix() * 1000
|
body, err := a.AccessStorePage2("https://login-o2o.jddj.com/jpuser/bindStore/"+utils.Int2Str(userID), nil, false, "")
|
||||||
params := map[string]interface{}{
|
|
||||||
"stationName": "",
|
|
||||||
"stationNo": "",
|
|
||||||
"city": "",
|
|
||||||
"_": utils.Int64ToStr(unix),
|
|
||||||
"userId": utils.Int2Str(userID),
|
|
||||||
}
|
|
||||||
body, err := a.AccessStorePage2("https://login-o2o.jddj.com/jpuser/bindStore/"+utils.Int2Str(userID), params, false, "")
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user