微信接口的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
843 B

  1. package weixinrpc
  2. import (
  3. "git.tetele.net/tgo/helper"
  4. "testing"
  5. )
  6. func Test_CheckImg(t *testing.T){
  7. appid := "wx3d53ccbaf69f7995"
  8. appSecret := "165983626235636be54a16404e3e70a7"
  9. imgUrl := helper.TencentCloudImageCompress("https://images-1306193253.cos.ap-guangzhou.myqcloud.com/uploads/20211026/1635213788c5713f49816c74a0e130694ed6544e71.jpg","450")
  10. //imgUrl := "https://images-1306193253.cos.ap-guangzhou.myqcloud.com/uploads/20211026/1635213788c5713f49816c74a0e130694ed6544e71.jpg"
  11. err := ImgSecCheck(appid,appSecret,imgUrl)
  12. t.Log(err)
  13. }
  14. func Test_CheckMsg(t *testing.T){
  15. appid := "wx3d53ccbaf69f7995"
  16. appSecret := "165983626235636be54a16404e3e70a7"
  17. checkData := map[string]interface{}{
  18. "openid":"oLBHE4kRuj8ywGKuXMgLbmFKrdkM",
  19. "scene":3,
  20. "content":"",
  21. }
  22. err := MsgSecCheck(appid,appSecret,checkData)
  23. t.Log(err)
  24. }