//go:build plus package mediasenders import ( teaconst "github.com/TeaOSLab/EdgeAPI/internal/const" timeutil "github.com/iwind/TeaGo/utils/time" "testing" ) func TestNewQyWeixinMedia(t *testing.T) { m := NewQyWeixinMedia() m.CorporateId = "xxx" m.AppSecret = "xxx" m.AgentId = "1000003" resp, err := m.Send("", "标题:报警标题", "内容:报警内容/全员都有", teaconst.GlobalProductName, timeutil.Format("Y-m-d H:i:s")) if err != nil { t.Log(string(resp)) t.Fatal(err) } t.Log(string(resp)) }