lanxin_open 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/lanxin_open/sig_verify.rb +1 -1
- data/lib/lanxin_open/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ZTFmODQyN2ExNzIwZWQyZTEwZjE3NDM1YmYzNjgxYTUyYmExNGZjOA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZDc3ZWI4YmU4MDE2Yjg5NDM4YmFjMTQwNGExOTg4ZjM0Mjc0OGMxNw==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MTlkYjU5NzAzMGE5ODQxNTIxZmMwMmQwNjIzNzFkM2NiMjJlODY2NjhkYzQ1
|
|
10
|
+
ZDk0NjM5MTEzMDBlYzI4NDM1Y2ZjYjdjYWJkYjhiNjFhODJlM2E4MWJlYzZm
|
|
11
|
+
MDA5OGI4YzRiOGMxM2JmMGUwM2Y2Mzc4OTg1MWIxZTk4OGFmYjI=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YzU0ZDg3MDA1YzUxNjI4NDY3Y2FjYzY0ZmI1ZWU2ODZjOGE0YmNjMTgyMjI3
|
|
14
|
+
NmE5MTM1NmI0ZmIxOWY0OTczMDI5Y2M5ZGE2NTAxN2EzNDg0ZWEwYjM3NDZj
|
|
15
|
+
Y2YxZTIyMGQyNTdmYjM5ZjE4N2IxYTI5ZGIzN2ZhZjlkOGYyMTA=
|
|
@@ -2,7 +2,7 @@ module SigVerify
|
|
|
2
2
|
|
|
3
3
|
def sig_verify(params)
|
|
4
4
|
time = params["timestamp"].to_i
|
|
5
|
-
time =
|
|
5
|
+
time = time.to_i / 1000 if params["timestamp"].length >= 13
|
|
6
6
|
return false if (Time.now - Time.at(time)) > 120
|
|
7
7
|
|
|
8
8
|
plain = [Rails.application.config.data_token,params["timestamp"],params["nonce"]].sort().join()
|
data/lib/lanxin_open/version.rb
CHANGED