chan_pay 0.4.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/chan_pay/http/communicate.rb +7 -2
- data/lib/chan_pay/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f7cfb3bbcfdc094b1de8969a506125098e98436
|
4
|
+
data.tar.gz: cea8ffc6330ce065ec706ab07adba2a8faa26c74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36b1991a9fee64d5f91a3ff55f244b0766e8875bc15be6643aa2aba49258f284148af40cd8dd6ffc1670cbb0385a78deb33acc14f01bd15c1e68f5411329b1dc
|
7
|
+
data.tar.gz: 6db9516e6b422ab98ea1aeb855fef0c383afecac9c5e256806282f7b7503ff7772fe3f7d463128a6e03fd6c9eced39031f82ebeafdbfc41ea93ea88c45157233
|
data/README.md
CHANGED
@@ -32,8 +32,13 @@ module ChanPay
|
|
32
32
|
result = RetCode.general_error_response(response.code,
|
33
33
|
RetCode::UNKNOWN_ERROR)
|
34
34
|
end
|
35
|
-
rescue Net::ReadTimeout #
|
36
|
-
result =
|
35
|
+
rescue Net::ReadTimeout # 请求超时,当 pending 处理
|
36
|
+
result = {
|
37
|
+
:AcceptStatus => "S", # 业务受理成功
|
38
|
+
:RetCode => RetCode::NET_TIMEOUT,
|
39
|
+
:RetMsg => "网络异常(0)",
|
40
|
+
:Status => "P", # 业务 PENDING
|
41
|
+
}
|
37
42
|
end
|
38
43
|
|
39
44
|
puts "\n[#{service_name}] 返回结果为:\n#{result}"
|
data/lib/chan_pay/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chan_pay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tony
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.6.14
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: '"畅捷支付"'
|