httplib_test.go
525 字节
package serviceGateway
import "testing"
func TestPushInfo(t *testing.T) {
//测试消息推送
c := NewHttplibMmmOpenApiServiceGateway()
//3436890424617728
//3422173870118400
resp, err := c.PushInfo(0, "mmm.ability.performance", []int64{3422173870118400}, "ceshi推送一个消息233", "消息内容xxxx332")
if err != nil {
t.Error(err)
}
t.Logf("%v", resp)
}
func TestSms(t *testing.T) {
c := SmsService{}
err := c.SendNoticeSms("18060823798", 5475050, map[string]string{
"name": "名字1"})
t.Log(err)
}