From b71abb3c099bf93ca49e25b710ba8477c14a27f0 Mon Sep 17 00:00:00 2001 From: Clement Venard Date: Wed, 29 Nov 2017 16:41:45 +0800 Subject: [PATCH] added missing struct initializers --- main.go | 2 +- plugin.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index ec35b42..f24452f 100644 --- a/main.go +++ b/main.go @@ -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"), diff --git a/plugin.go b/plugin.go index bd8d649..c036926 100644 --- a/plugin.go +++ b/plugin.go @@ -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)