- update caiyunapp

master
李光春 1 year ago
parent eee9be019c
commit b141867b87

@ -1,5 +1,5 @@
package go_library
func Version() string {
return "1.0.131"
return "1.0.132"
}

@ -251,7 +251,7 @@ func (c *Client) Daily(ctx context.Context, location string, notMustParams ...go
// 参数
params := gorequest.NewParamsWith(notMustParams...)
// 请求
request, err := c.request(ctx, c.getApiUrl()+fmt.Sprintf("/%s/daily?dailysteps=1", location), params, http.MethodGet)
request, err := c.request(ctx, c.getApiUrl()+fmt.Sprintf("/%s/daily", location), params, http.MethodGet)
if err != nil {
return newDailyResult(DailyResponse{}, request.ResponseBody, request), err
}

@ -123,7 +123,7 @@ func (c *Client) Hourly(ctx context.Context, location string, notMustParams ...g
// 参数
params := gorequest.NewParamsWith(notMustParams...)
// 请求
request, err := c.request(ctx, c.getApiUrl()+fmt.Sprintf("/%s/hourly?hourlysteps=1", location), params, http.MethodGet)
request, err := c.request(ctx, c.getApiUrl()+fmt.Sprintf("/%s/hourly", location), params, http.MethodGet)
if err != nil {
return newHourlyResult(HourlyResponse{}, request.ResponseBody, request), err
}

Loading…
Cancel
Save