瀏覽代碼

更新

master
huangjiajun 1 年之前
父節點
當前提交
506c908f83
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. +5
    -0
      macao_logistics/api.go

+ 5
- 0
macao_logistics/api.go 查看文件

@@ -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
}

Loading…
取消
儲存