ejy
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user