1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-04 12:52:27 +08:00

fix 修改参数类型为interface{},支持string和number (#390)

This commit is contained in:
silenceper
2021-04-12 16:06:14 +08:00
committed by GitHub
parent 5ec4cc2269
commit 5472ac979b

View File

@@ -43,8 +43,8 @@ type Message struct {
//DataItem 模版内某个 .DATA 的值
type DataItem struct {
Value string `json:"value"`
Color string `json:"color"`
Value interface{} `json:"value"`
Color string `json:"color"`
}
//TemplateItem template item