third_party_wxa 0.2.5 → 0.2.6
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 +5 -4
- 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: 1442512f1b53cf7b09e4dbf866e7e3e6d3563d2cc59b89b8b2b89ca7b71f77cb
|
|
4
|
+
data.tar.gz: '08a85fd5e8a547e5651928718e130e6babe929a6040076a3c0b071ede54c733c'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e07263c368396fc66bbafe88a1fcf659c726b45587264b977504ffcaa958e98599b0fbdfcc6d50d97f73f4ed716b74d29bb109784fe9edb33c07dd9149de86a8
|
|
7
|
+
data.tar.gz: 6cb13cee68c5e04442395a0e10d34651d09f970ad51d6fc0023f15386abd1bb72cb8da57ebbb81a199edc31c1ca7b4cc1d25c9cc3893c5a2707cdf9cb37e9674
|
data/Gemfile.lock
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
require 'singleton'
|
|
2
1
|
module ThirdPartyWxa
|
|
3
2
|
class Plugin
|
|
4
3
|
|
|
5
|
-
include Singleton
|
|
6
4
|
include Api::Authorize
|
|
7
5
|
include Api::Code
|
|
8
6
|
include Api::Login
|
|
@@ -44,8 +42,11 @@ module ThirdPartyWxa
|
|
|
44
42
|
end
|
|
45
43
|
|
|
46
44
|
def get_component_access_token
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
m = Mutex.new
|
|
46
|
+
m.synchronize{
|
|
47
|
+
set_component_access_token if !component_access_token_valid?
|
|
48
|
+
@component_access_token
|
|
49
|
+
}
|
|
49
50
|
end
|
|
50
51
|
|
|
51
52
|
def set_component_access_token
|