package sms import ( "testing" ) func Test_SendByUms(t *testing.T) { spCode := "257980" appKey := "zx_jfsw" secretKey := "cRgpvZ0242l7tE" mobiles := "18607565510" templateId := "1011012121170" content := "您好!您的园区消费的账号为88888,初始密码为666666aa。请尽快修改初始密码,密码设置需包含字母、数字、特殊字符2种以上且最少8位。密码修改方式:微信小程序搜索“园区消费”,首次登录会自动进入修改密码页面,后续修改密码请登录后选择“我的”——更多服务——修改密码。如有问题,请联系信息技术中心。" ret, data, err := SendByUms(spCode, appKey, secretKey, mobiles, templateId, content) t.Log(ret) t.Log(string(data)) t.Log(err) }