l_msg_api/test/msg_test.go

18 lines
315 B
Go

package test
import (
"fmt"
"gitea.cdlsxd.cn/self-tools/l_msg_api"
"testing"
)
func TestBase(t *testing.T) {
msg, err := l_msg_api.NewMessageCenter("", "", "sms", "cron_sms")
if err != nil {
panic(err)
}
res, err := msg.SendSms([]string{"15082245122"}, `{"content": "测试"}`)
fmt.Println(res, err)
}