Skip to content

Commit

Permalink
fix 修改参数类型为interface{},支持string和number (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
silenceper committed Apr 12, 2021
1 parent 5ec4cc2 commit 5472ac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions miniprogram/subscribe/subscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5472ac9

Please sign in to comment.