weixin_rails_middleware 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20636ef04ad9e490d71c59375819148285a067e3
|
4
|
+
data.tar.gz: 3c9e8ef0d981074eaec67981c93c6965bc84ab28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adadd27ecb4ce7e0ae949500613fab251d066ef1eefe5bfa6f03be515766009a1319cdfbfa8346806110a8de352b23bd13a9db13c1c9778c11d0c0c80ad79c25
|
7
|
+
data.tar.gz: 23c3a8e5b56525c52ce9a5e5e04090bdb90f4d3ab7ea2c265a1eaf55739a2eb0df4607195929637b16f6e365b426d71c4f807ea1ad01033fd0067454f9d43b66
|
@@ -2,7 +2,6 @@ module WeixinRailsMiddleware
|
|
2
2
|
class WeixinController < ActionController::Base
|
3
3
|
include ReplyWeixinMessageHelper
|
4
4
|
|
5
|
-
skip_before_filter :verify_authenticity_token
|
6
5
|
before_filter :check_is_encrypt, only: [:index, :reply]
|
7
6
|
before_filter :initialize_adapter, :check_weixin_legality, only: [:index, :reply]
|
8
7
|
before_filter :set_weixin_public_account, :set_weixin_message, only: :reply
|
@@ -70,7 +70,7 @@ module WeixinRailsMiddleware
|
|
70
70
|
def render_authorize_result(status=401, text=nil, valid=false)
|
71
71
|
text = text || error_msg
|
72
72
|
Rails.logger.error(text) if status != 200
|
73
|
-
{
|
73
|
+
{plain: text, status: status, valid: valid}
|
74
74
|
end
|
75
75
|
|
76
76
|
def error_msg
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: weixin_rails_middleware
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lanrion
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
135
|
rubyforge_project:
|
136
|
-
rubygems_version: 2.4.5
|
136
|
+
rubygems_version: 2.4.5
|
137
137
|
signing_key:
|
138
138
|
specification_version: 4
|
139
139
|
summary: weixin_rails_middleware for integration weixin
|