mirror of
https://github.com/clem109/drone-wechat.git
synced 2026-06-04 10:23:45 +08:00
added missing struct initializers
This commit is contained in:
@@ -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"),
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user