yx_sdk 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yx_sdk/client.rb +1 -1
- data/lib/yx_sdk/version.rb +1 -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: 3c8ed31800749fbfe9e181ace19863d8ae066c68
|
4
|
+
data.tar.gz: 54aa0f4228ea861557344822b69ddf5ec51c61b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1606afc33fac430947f74b99ad4e8d4ea9cf3dce1eedb2f4377ce3459a72d46c61d5b6e5d70ce0213f097e46b921c6c382ae3187abeae9cd28bfba9ab8d4b005
|
7
|
+
data.tar.gz: fd555575267c3993232a0513a1d4cf3734caad130a6ab4094ec4a9e7a3273b73dea54c366dc340fcb0722f9e2e8572859f34078f2926d8870b8638280a0c11fd
|
data/lib/yx_sdk/client.rb
CHANGED
@@ -21,7 +21,7 @@ module YxSdk
|
|
21
21
|
def get_header
|
22
22
|
timestamp = Time.now.to_i
|
23
23
|
noncestr = SecureRandom.hex(16)
|
24
|
-
str = "#{
|
24
|
+
str = "#{app_secret}#{noncestr}#{timestamp}"
|
25
25
|
signature = Digest::SHA1.hexdigest(str)
|
26
26
|
{
|
27
27
|
"AppKey" => @app_key,
|
data/lib/yx_sdk/version.rb
CHANGED