From 60abd6ea5d51fa7e3850b4dfa2c50d2d1406958c Mon Sep 17 00:00:00 2001 From: ringsaturn Date: Thu, 14 Oct 2021 00:00:24 +0800 Subject: [PATCH] fix(desc): merge minutely&hourly text --- backends/caiyun.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backends/caiyun.go b/backends/caiyun.go index ee239aa..b18514b 100644 --- a/backends/caiyun.go +++ b/backends/caiyun.go @@ -98,7 +98,8 @@ func (c *CaiyunConfig) Fetch(location string, numdays int) iface.Data { if err := json.Unmarshal(body, weatherData); err != nil { panic(err) } - res.Current.Desc = weatherData.Result.ForecastKeypoint + res.Current.Desc = weatherData.Result.Minutely.Description + "\t" + weatherData.Result.Hourly.Description + res.Current.TempC = func() *float32 { x := float32(weatherData.Result.Realtime.Temperature) return &x