VcoiceCall_test.go 485 B

1234567891011121314151617
  1. package http
  2. import (
  3. "fmt"
  4. "testing"
  5. )
  6. func TestVoiceNotify(t *testing.T) {
  7. t.Log("hello world")
  8. playInfoList := GetPlayInfoList(template, []string{"【贵阳市人民医院-消化内科】", "小张", "2023年01月01日"})
  9. //res, err := VoiceNotifyAPI(conf.VoiceCall_Phone, "+8618086869080", playInfoList)
  10. res, err := VoiceNotifyAPI(phone, "+8618086869080", playInfoList)
  11. if err != nil {
  12. fmt.Println("错误信息", err)
  13. }
  14. fmt.Println(fmt.Sprintf("res ==> %+v", res))
  15. }