Browse Source

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 3 years ago
parent
commit
4f0185610c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      service/jsyb_service.go

+ 1 - 2
service/jsyb_service.go View File

@@ -7,7 +7,6 @@ import (
7 7
 	"encoding/json"
8 8
 	"fmt"
9 9
 	"gdyb/utils/csbhttp"
10
-	"strconv"
11 10
 	"time"
12 11
 )
13 12
 
@@ -108,7 +107,7 @@ func HttpRequest(url string, ak string, sk string, timestamp int64, requestByte
108 107
 
109 108
 	//添加附加的http请求头 (可以定义多条)
110 109
 	//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))
110
+	csbHP.AddHeader("_api_timestamp", "1627006379509")
112 111
 	csbHP.AddHeader("_api_name", "hssServives")
113 112
 	csbHP.AddHeader("_api_version", "1.0.0")
114 113
 	csbHP.AddHeader("_api_access_key", ak)