Browse Source

sign package

ls 4 years ago
parent
commit
9619354c6d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      wechat/client.go

+ 2 - 2
wechat/client.go

@@ -208,8 +208,8 @@ func (wc Client) GetSignPackage(uri, nonceStr string) (sign SignPackage, err err
 		return
 	}
 
-	s = `jsapi_ticket=` + wc.Ticket
-	s += `&noncestr=` + nonceStr
+	s = `noncestr=` + nonceStr
+	s += `&jsapi_ticket=` + wc.Ticket
 	s += `&timestamp=` + fmt.Sprintf("%d", unix)
 	s += `&url=` + uri