微信接口的RPC包
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.

30 lines
963 B

  1. package weixinrpc
  2. import (
  3. "testing"
  4. )
  5. func Test_SendMiniSubscribeMessage(t *testing.T) {
  6. db := "gkxy_tetele_net"
  7. site_id := "1101832"
  8. appid := "wx7b72dc719ad1f6d3"
  9. secret := "b8ae6d64605a963056ff067cceffefd2"
  10. touser := "osxVD5S0PAh82gyIXSiXCJzM_k6s"
  11. temp_id := "0Qbw6nuzj3X4kvOqGbGgD-dlu06NF6u9_ZYIiw0TY4Y"
  12. page := "pages/order/order"
  13. miniprogram_state := ""
  14. lang := ""
  15. data := map[string]map[string]string{
  16. "character_string1": map[string]string{"value": "961617783456"},
  17. "phrase2": map[string]string{"value": "配送中"},
  18. "thing3": map[string]string{"value": "小火锅"},
  19. "thing4": map[string]string{"value": "香洲区测试用"},
  20. "thing5": map[string]string{"value": "下单备注"},
  21. }
  22. // data_json, _ := json.Marshal(data)
  23. ret, err := SendMiniSubscribeMessage(db, site_id, appid, secret, touser, temp_id, page, miniprogram_state, lang, data, "49.232.85.91:17969")
  24. t.Log(ret, err)
  25. }