Browse Source

更新

master
huangjiajun 1 year ago
parent
commit
506c908f83
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      macao_logistics/api.go

+ 5
- 0
macao_logistics/api.go View File

@@ -3,6 +3,7 @@ package macao_logistics
import ( import (
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/comm" "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" zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
"fmt"
"strings" "strings"
) )


@@ -24,6 +25,8 @@ func Send(method string, params map[string]interface{}, acctoken string) (string
header["Authorization"] = "Bearer " + acctoken header["Authorization"] = "Bearer " + acctoken
} }
data, err := zhios_third_party_utils.CurlPost(url, params, header) data, err := zhios_third_party_utils.CurlPost(url, params, header)
fmt.Println(string(data))
fmt.Println(err)
return string(data), err return string(data), err
} }
func SendGet(method string, params map[string]interface{}, acctoken string) (string, error) { 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) data, err := zhios_third_party_utils.CurlGet(url, header)
fmt.Println(string(data))
fmt.Println(err)
return string(data), err return string(data), err
} }

Loading…
Cancel
Save