struggle 1.5.5 → 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/struggle/pay_gateway.rb +2 -2
- data/struggle.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6eeeac63a267bd4f07f3d489f63c5915c3620bf
|
4
|
+
data.tar.gz: 2455d1f08ac2b2b5db8a25e093e2abd3c7c9ee59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab84f0e6e0046191253ad12271b7b6a9249041b6d863eec14156476f44a535e7d2131776fb2cade202a37ad38c2cf0eee44f9ac0a9f81ce1d3371c50017aa817
|
7
|
+
data.tar.gz: 34b4381cd71a4bf9bb23e6e0a9bd1910288793596138d6ec1edb7e01c9fed2a6339174ad2263a6b67036afc25759264f741bff6caf78fbdffda4c328a7c12271
|
data/lib/struggle/pay_gateway.rb
CHANGED
@@ -51,9 +51,9 @@ module Struggle
|
|
51
51
|
# 20(表示支付成功)
|
52
52
|
# 30(表示支付失败)
|
53
53
|
if v_pstatus=="20" && v_md5str==Digest::MD5.hexdigest(v_oid+v_pstatus+v_amount+v_moneytype+key).upcase
|
54
|
-
return {code: params["v_oid"], amount: v_amount}
|
54
|
+
return {state: true, code: params["v_oid"], amount: v_amount}
|
55
55
|
else
|
56
|
-
return
|
56
|
+
return {state: false, code: params["v_oid"], amount: v_amount}
|
57
57
|
end
|
58
58
|
end
|
59
59
|
end
|
data/struggle.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'struggle'
|
3
|
-
s.version = '1.5.
|
4
|
-
s.date = '2015-08-
|
3
|
+
s.version = '1.5.6'
|
4
|
+
s.date = '2015-08-03'
|
5
5
|
s.summary = "struggle!"
|
6
6
|
s.description = "vcode,tfile,pager,func,logistic,pay_gateway,tmagick,html_extend;"
|
7
7
|
s.authors = ["lean"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: struggle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lean
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iconv
|