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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 21299c4a026ab076351f329840f16e3bcfe44943
4
- data.tar.gz: 822a0e86cbac321bad43f34eb1a6afb7bebdb531
3
+ metadata.gz: c6eeeac63a267bd4f07f3d489f63c5915c3620bf
4
+ data.tar.gz: 2455d1f08ac2b2b5db8a25e093e2abd3c7c9ee59
5
5
  SHA512:
6
- metadata.gz: 6752c431128b728c17c0ac9d75717828ec1726bcc86c4dcb945b17712230bd6bcbda051dd0b3010657171482bfc89b4b35a1f4d5d13941a8ae80a3a09db5c379
7
- data.tar.gz: 46e9f93a993f0d5b058fd5262b8a7510496e0acfdd2b10770c881dce78f318e7a535d1cfb711a619db6e00ec85380f5830984395b5c07264a3585f1832b88962
6
+ metadata.gz: ab84f0e6e0046191253ad12271b7b6a9249041b6d863eec14156476f44a535e7d2131776fb2cade202a37ad38c2cf0eee44f9ac0a9f81ce1d3371c50017aa817
7
+ data.tar.gz: 34b4381cd71a4bf9bb23e6e0a9bd1910288793596138d6ec1edb7e01c9fed2a6339174ad2263a6b67036afc25759264f741bff6caf78fbdffda4c328a7c12271
@@ -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 nil
56
+ return {state: false, code: params["v_oid"], amount: v_amount}
57
57
  end
58
58
  end
59
59
  end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'struggle'
3
- s.version = '1.5.5'
4
- s.date = '2015-08-01'
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.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-01 00:00:00.000000000 Z
11
+ date: 2015-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iconv