Skip to content

Commit

Permalink
fix gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mahongran committed Jan 14, 2025
1 parent a9c249d commit b5d08a2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions officialaccount/js/js.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,10 @@ func (js *Js) GetConfig(uri string) (config *Config, err error) {
if err != nil {
return
}

nonceStr := util.RandomStr(16)
timestamp := util.GetCurrTS()
str := fmt.Sprintf("jsapi_ticket=%s&noncestr=%s&timestamp=%d&url=%s", ticketStr, nonceStr, timestamp, uri)
sigStr := util.Signature(str)

config.AppID = js.AppID
config.NonceStr = nonceStr
config.Timestamp = timestamp
Expand Down

0 comments on commit b5d08a2

Please sign in to comment.