|
@@ -103,12 +103,7 @@ func HttpPost(url, postData string, params ...string) ([]byte, error) {
|
|
|
contentType = params[0]
|
|
|
}
|
|
|
req.Header.Set("Content-Type", contentType)
|
|
|
- authorization := utils.MD5(utils.APP_EDB_LIB_NAME_EN + utils.EDB_LIB_Md5_KEY)
|
|
|
- fmt.Println("name:", utils.APP_EDB_LIB_NAME_EN, ",md5_key:", utils.EDB_LIB_Md5_KEY, ";")
|
|
|
- fmt.Println(utils.APP_EDB_LIB_NAME_EN)
|
|
|
- fmt.Println(utils.EDB_LIB_Md5_KEY)
|
|
|
- fmt.Println("authorization:", authorization)
|
|
|
- req.Header.Set("authorization", authorization)
|
|
|
+ req.Header.Set("authorization", utils.MD5(utils.APP_EDB_LIB_NAME_EN+utils.EDB_LIB_Md5_KEY))
|
|
|
resp, err := client.Do(req)
|
|
|
defer resp.Body.Close()
|
|
|
b, err := ioutil.ReadAll(resp.Body)
|