第三方api接口
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.

1 jaar geleden
123456789101112131415161718192021222324252627
  1. package jingtuitui
  2. import (
  3. zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
  4. "net/url"
  5. )
  6. var (
  7. //AppId = "1905100947392483"
  8. //AppKey = "0b01f8443a6045fec070b15ff72f2ade"
  9. AppId = "1808101621139589"
  10. AppKey = "4e15dd15dee97340c364ca678703e2d1"
  11. )
  12. // url 地址 params 参数
  13. func SendReq(urls string, params map[string]string) ([]byte, error) {
  14. params["appid"] = AppId
  15. params["appkey"] = AppKey
  16. var s url.URL
  17. q := s.Query()
  18. for k, v := range params {
  19. q.Add(k, v)
  20. }
  21. urls += "?" + q.Encode()
  22. return zhios_third_party_utils.CurlGet(urls, nil)
  23. }