ejy
This commit is contained in:
@@ -15,6 +15,7 @@ import (
|
|||||||
const (
|
const (
|
||||||
sigKey = "sign"
|
sigKey = "sign"
|
||||||
TestUrl = "https://dev.ejiayou.com"
|
TestUrl = "https://dev.ejiayou.com"
|
||||||
|
Url = "https://api.ejiayou.com"
|
||||||
)
|
)
|
||||||
|
|
||||||
type API struct {
|
type API struct {
|
||||||
@@ -121,7 +122,7 @@ func (a *API) GetStationList() (getStationListResult []*GetStationListResult, er
|
|||||||
params := make(map[string]interface{})
|
params := make(map[string]interface{})
|
||||||
// params["platformName"] = a.platformName
|
// params["platformName"] = a.platformName
|
||||||
sign := a.signParam(params)
|
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 {
|
if err == nil {
|
||||||
utils.Map2StructByJson(result["data"], &getStationListResult, false)
|
utils.Map2StructByJson(result["data"], &getStationListResult, false)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user