|
- package jingtuitui
-
- import (
- zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
- "net/url"
- )
-
- var (
- //AppId = "1905100947392483"
- //AppKey = "0b01f8443a6045fec070b15ff72f2ade"
-
- AppId = "1808101621139589"
- AppKey = "4e15dd15dee97340c364ca678703e2d1"
- )
-
- // url 地址 params 参数
- func SendReq(urls string, params map[string]string) ([]byte, error) {
- params["appid"] = AppId
- params["appkey"] = AppKey
- var s url.URL
- q := s.Query()
- for k, v := range params {
- q.Add(k, v)
- }
- urls += "?" + q.Encode()
- return zhios_third_party_utils.CurlGet(urls, nil)
- }
|