|
|
@@ -3,6 +3,7 @@ package macao_logistics |
|
|
|
import ( |
|
|
|
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/comm" |
|
|
|
zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" |
|
|
|
"fmt" |
|
|
|
"strings" |
|
|
|
) |
|
|
|
|
|
|
@@ -24,6 +25,8 @@ func Send(method string, params map[string]interface{}, acctoken string) (string |
|
|
|
header["Authorization"] = "Bearer " + acctoken |
|
|
|
} |
|
|
|
data, err := zhios_third_party_utils.CurlPost(url, params, header) |
|
|
|
fmt.Println(string(data)) |
|
|
|
fmt.Println(err) |
|
|
|
return string(data), err |
|
|
|
} |
|
|
|
func SendGet(method string, params map[string]interface{}, acctoken string) (string, error) { |
|
|
@@ -40,5 +43,7 @@ func SendGet(method string, params map[string]interface{}, acctoken string) (str |
|
|
|
} |
|
|
|
} |
|
|
|
data, err := zhios_third_party_utils.CurlGet(url, header) |
|
|
|
fmt.Println(string(data)) |
|
|
|
fmt.Println(err) |
|
|
|
return string(data), err |
|
|
|
} |