fix golangci-lint failed (#284)

* fix golangci-lint error
This commit is contained in:
silenceper authored and GitHub committed 2020-06-24 14:36:33 +08:00
1 parent b5c70cc206
commit 868b31cb3d
31 files changed
+175 -155

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ func (js *Js) GetConfig(uri string) (config *Config, err error) {
}
nonceStr := util.RandomStr(16)
timestamp := util.GetCurrTs()
timestamp := util.GetCurrTS()
str := fmt.Sprintf("jsapi_ticket=%s&noncestr=%s&timestamp=%d&url=%s", ticketStr, nonceStr, timestamp, uri)
sigStr := util.Signature(str)