|
@@ -93,7 +93,7 @@ func Jsyb1101(certNo string, org_name string, doctor string, fixmedins_code stri
|
93
|
93
|
//str := string(respBytes)
|
94
|
94
|
//return str, inputLog
|
95
|
95
|
//request_url = "http://10.72.3.87:8086/CSB/1101"
|
96
|
|
- return HttpRequest(request_url, access_key, secret_key, timestamp/1000, bytesData, string(bytesData)), ""
|
|
96
|
+ return HttpRequest(request_url, access_key, secret_key, timestamp, bytesData, string(bytesData)), ""
|
97
|
97
|
}
|
98
|
98
|
func HttpRequest(url string, ak string, sk string, timestamp int64, requestByte []byte, json string) string {
|
99
|
99
|
fmt.Println(url)
|
|
@@ -108,7 +108,7 @@ func HttpRequest(url string, ak string, sk string, timestamp int64, requestByte
|
108
|
108
|
|
109
|
109
|
//添加附加的http请求头 (可以定义多条)
|
110
|
110
|
//key := "_api_access_key=" + ak + "&_api_name=" + "hssServives" + "&_api_timestamp=" + strconv.FormatInt(timestamp, 10) + "&_api_version=" + "1.0.0"
|
111
|
|
- csbHP.AddHeader("_api_timestamp", strconv.FormatInt(timestamp, 10))
|
|
111
|
+ csbHP.AddHeader("_api_timestamp", strconv.FormatInt(timestamp/1000, 10))
|
112
|
112
|
csbHP.AddHeader("_api_name", "hssServives")
|
113
|
113
|
csbHP.AddHeader("_api_version", "1.0.0")
|
114
|
114
|
csbHP.AddHeader("_api_access_key", ak)
|