1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user