third_party_wxa 0.1.6 → 0.1.7
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/third_party_wxa/plugin.rb +2 -2
- data/lib/third_party_wxa/token/redis_store.rb +1 -1
- data/lib/third_party_wxa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 97cf7da6a90176a25115a8bf8693748041a5f67309dbfa43869ee8b4abb44bdb
|
|
4
|
+
data.tar.gz: 368c4f95460d6c24f4d6053a75afde4c9a2878703a534922352dc9e58a903a24
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf0554b6df2d254a881cbf9ad3c96599e88950ba1b170eb9588735bcc8d19039514e26bf79394a430743b86fa02c7c298e3b728ecaa21d1a2acb5730bacfab2e
|
|
7
|
+
data.tar.gz: e6d30d4e8c44205740909cbc1fd92e4290a2bcbc7421803eb455774386a87cc6c20dc9196d8cb163f002e6a6f8d4c493d43b8019a164a2916819a4b6950791f9
|
data/Gemfile.lock
CHANGED
|
@@ -29,7 +29,7 @@ module ThirdPartyWxa
|
|
|
29
29
|
|
|
30
30
|
def component_access_token_valid?
|
|
31
31
|
return false if @component_access_token.nil? || @component_expire_at.nil?
|
|
32
|
-
|
|
32
|
+
Time.now.to_i <= @component_expire_at
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
def get_component_access_token
|
|
@@ -46,7 +46,7 @@ module ThirdPartyWxa
|
|
|
46
46
|
|
|
47
47
|
def pre_auth_code_valid?
|
|
48
48
|
return false if @pre_auth_code.nil? || @pre_expire_at.nil?
|
|
49
|
-
|
|
49
|
+
Time.now.to_i <= @pre_expire_at
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
def get_pre_auth_code
|
|
@@ -7,7 +7,7 @@ module ThirdPartyWxa
|
|
|
7
7
|
def authorizer_access_token_valid? sign
|
|
8
8
|
expire_at = wx_redis.hget sign, 'expire_at'
|
|
9
9
|
return false if wx_redis.hget(sign, 'access_token').blank? || expire_at.blank?
|
|
10
|
-
|
|
10
|
+
Time.now.to_i <= expire_at.to_i
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def get_authorizer_access_token sign
|