This commit is contained in:
苏尹岚
2020-12-02 16:04:21 +08:00
parent 5b9c308561
commit 7108c05fb4

View File

@@ -15,6 +15,7 @@ import (
const (
sigKey = "sign"
TestUrl = "https://dev.ejiayou.com"
Url = "https://api.ejiayou.com"
)
type API struct {
@@ -121,7 +122,7 @@ func (a *API) GetStationList() (getStationListResult []*GetStationListResult, er
params := make(map[string]interface{})
// params["platformName"] = a.platformName
sign := a.signParam(params)
result, err := a.AccessAPI("oreo/ejiayou_open_api/stations/v2/"+a.platformName+"/"+sign+"/"+utils.Int64ToStr(a.timeStamp), TestUrl, nil)
result, err := a.AccessAPI("oreo/ejiayou_open_api/stations/v2/"+a.platformName+"/"+sign+"/"+utils.Int64ToStr(a.timeStamp), Url, nil)
if err == nil {
utils.Map2StructByJson(result["data"], &getStationListResult, false)
}