added missing struct initializers

This commit is contained in:
Clement Venard
2017-11-29 16:41:45 +08:00
parent a925b06c6f
commit b71abb3c09
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ func (p Plugin) Exec() error {
MsgURL string `json:"url"`
BtnTxt string `json:"btntext"`
} `json:"textcard"`
}{p.Config.ToUser, p.Config.MsgType, p.Config.Agentid, textCard}
}{p.Config.ToUser, p.Config.ToParty, p.Config.ToTag, p.Config.MsgType, p.Config.Agentid, p.Config.Safe, textCard}
b, _ = json.Marshal(data) // []byte(data)