|
1234567891011121314151617181920 |
- package playlet_bihai
-
- import (
- zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
- "fmt"
- )
-
- func SendPost(method string, token string, param map[string]string) (string, error) {
- url := "https://distributionapi.qinronmedia.com/" + method
- header := map[string]string{}
- if token != "" {
- header = map[string]string{
- "Authorization": "Bearer " + token,
- }
- }
- get, err := zhios_third_party_utils.CurlPost(url, zhios_third_party_utils.SerializeStr(param), header)
- fmt.Println(string(get))
- fmt.Println(err)
- return string(get), err
- }
|