mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
添加更多数据,修改发送排版 (#167)
This commit is contained in:
parent
17f5b52931
commit
81a4297eb1
@ -35,6 +35,7 @@ type area struct {
|
|||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Today struct {
|
Today struct {
|
||||||
Confirm int `json:"confirm"`
|
Confirm int `json:"confirm"`
|
||||||
|
Wzzadd int `json:"wzz_add"`
|
||||||
} `json:"today"`
|
} `json:"today"`
|
||||||
Total struct {
|
Total struct {
|
||||||
NowConfirm int `json:"nowConfirm"`
|
NowConfirm int `json:"nowConfirm"`
|
||||||
@ -42,6 +43,7 @@ type area struct {
|
|||||||
Dead int `json:"dead"`
|
Dead int `json:"dead"`
|
||||||
Heal int `json:"heal"`
|
Heal int `json:"heal"`
|
||||||
Grade string `json:"grade"`
|
Grade string `json:"grade"`
|
||||||
|
Wzz int `json:"wzz"`
|
||||||
} `json:"total"`
|
} `json:"total"`
|
||||||
Children []*area `json:"children"`
|
Children []*area `json:"children"`
|
||||||
}
|
}
|
||||||
@ -71,12 +73,14 @@ func init() {
|
|||||||
ctx.SendChain(
|
ctx.SendChain(
|
||||||
message.Text(
|
message.Text(
|
||||||
"【", data.Name, "】疫情数据\n",
|
"【", data.Name, "】疫情数据\n",
|
||||||
"新增:", data.Today.Confirm, " ,",
|
"新增人数:", data.Today.Confirm, "\n",
|
||||||
"现有确诊:", data.Total.NowConfirm, " ,",
|
"现有确诊:", data.Total.NowConfirm, "\n",
|
||||||
"治愈:", data.Total.Heal, " ,",
|
"累计确诊:", data.Total.Confirm, "\n",
|
||||||
"死亡:", data.Total.Dead, " ", data.Total.Grade, "\n",
|
"治愈人数:", data.Total.Heal, "\n",
|
||||||
"更新时间:", time, "\n",
|
"死亡人数:", data.Total.Dead, "\n",
|
||||||
"温馨提示:请大家做好防疫工作,出门带好口罩!",
|
"无症状人数:", data.Total.Wzz, "\n",
|
||||||
|
"新增无症状:", data.Today.Wzzadd, "\n",
|
||||||
|
"更新时间:\n『", time, "』",
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user