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
@@ -227,7 +227,7 @@ func run(c *cli.Context) error {
ToTag: c.String("tostring"),
Title: c.String("title"),
Description: c.String("description"),
Safe: c.Bool("safe"),
Safe: c.Int("safe"),
ContentType: c.String("content-type"),
Debug: c.Bool("debug"),
SkipVerify: c.Bool("skip-verify"),
+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)