wechat_kit 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wechat_kit/version.rb +1 -1
- data/lib/wechat_kit.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 138cfe0be0930bc747bb1abcc96709f7bae2d9c8
|
4
|
+
data.tar.gz: 4745b77dc6d68a3243bd8add23b0d6ef9d229ff0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49984791b5a8b28ad1eca539d224be136908b3d31d41fb4528c7fe6916eab93d3ad8caf373cedcca3dad9c35e530d098c0b77837700381851f157ccfa0abe11e
|
7
|
+
data.tar.gz: d01a72ae287a6a7d75ec4d13f91fda2faaf2ee410ec6ea9b9790b4c954049e2452651f6a590810259d52a7e93062b8d89b2e5fb02071f6d4a97574dd7e2b7d7d
|
data/lib/wechat_kit/version.rb
CHANGED
data/lib/wechat_kit.rb
CHANGED
@@ -19,7 +19,7 @@ module WechatKit
|
|
19
19
|
@app_secret = app_secret
|
20
20
|
end
|
21
21
|
|
22
|
-
def signature(url, jsApiList=[])
|
22
|
+
def signature(url, jsApiList=[], debug=false)
|
23
23
|
jsapi_ticket = get_js_api_ticket
|
24
24
|
timestamp = Time.now.to_i.to_s
|
25
25
|
nonce = SecureRandom.hex 16
|
@@ -28,6 +28,7 @@ module WechatKit
|
|
28
28
|
signature = Digest::SHA1.hexdigest(string)
|
29
29
|
|
30
30
|
sign_package = {
|
31
|
+
"debug" => debug,
|
31
32
|
"appId" => @app_id,
|
32
33
|
"nonceStr" => nonce,
|
33
34
|
"timestamp" => timestamp,
|