This commit is contained in:
邹宗楠
2025-02-07 15:04:59 +08:00
parent abf96a20a6
commit 681753ee8a
6 changed files with 6 additions and 19 deletions

View File

@@ -83,7 +83,6 @@ func OnOrderMsg(msgId string, msg interface{}) (response *tiktokShop.CallbackRes
// HttpToGuoYuan 暂时还未开通果园和宠物的抖音
func HttpToGuoYuan(param map[string]interface{}, requestType string, serverType string) (*http.Response, error) {
return nil, nil
var paramData []byte
var err error
if requestType == "order" || requestType == "waybill" {
@@ -134,6 +133,8 @@ func HttpToGuoYuan(param map[string]interface{}, requestType string, serverType
}
httpReq.Header.Set("Content-Type", "application/json")
//httpReq.Header.Set("Content-Type", "application/x-www-form-urlencoded")
httpReq.Header.Set("accept", "application/json, text/plain, */*")
httpRes, err := http.DefaultClient.Do(httpReq)
return httpRes, err