短信发送方法
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
741 B

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