new_alipay 0.1.7 → 0.1.8

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: 15869ed4273e78cc0f8548324278876e8cec87ef
4
- data.tar.gz: f8f575160066c99137b82f5c68225aebe42b8264
3
+ metadata.gz: 43d6e790619b32767ffbdf1df8fc8b7da94112f0
4
+ data.tar.gz: 68d7a8223d1a755e65229d0e430282e3d6cf481b
5
5
  SHA512:
6
- metadata.gz: 1e38c29b41036da3d57530f6f007c9a2ab3b674b3eb5b460cd7654367fe0cf391d5b3e0712f15e07bb74d7bbdb8a0fbe9c7cb47f3b4600780abf0a5e7c9eeddf
7
- data.tar.gz: 54a07efa52057a92287e2aaba4737543d31855d14af0ad605984ebaa5e54a8d223de949f9c83732edf0f568893eb60f74e82c42ef8af7cb3a8d0b137e35ba1fd
6
+ metadata.gz: 075f0bd402554a648462ba5cb5bc2b32d996832787f6e444d51baea6340b7b5c133da5d99586a3fc1102c2b09dea8bacccf6f2292712e1d89caa776ddd4b7460
7
+ data.tar.gz: 6bd44ec685548e3be1f4aa5d8a0da5b82495b46daa6563817bc27a5a59c6d0df152400df0a4380cf3724af1102837182c69096597c074ada3dc7cb0315698320
@@ -28,7 +28,7 @@ module NewAlipay
28
28
  "email" => NewAlipay.seller_email,
29
29
  "account_name" => NewAlipay.account_name,
30
30
  "pay_date" => Time.new.strftime('%Y-%m-%d'),
31
- "batch_no" => Time.new.strftime('%Y%m%d')+16.times.inject('') { |acc, i| acc+=('0'..'9').to_a[(i+Random.rand(1000))%10]; acc },
31
+ "batch_no" => random_trade_no(24),
32
32
  "batch_fee" => para_temp[:batch_fee],
33
33
  "batch_num" => para_temp[:batch_num],
34
34
  "detail_data" => para_temp[:detail_data],
@@ -1,3 +1,3 @@
1
1
  module NewAlipay
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: new_alipay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - saxer