blsm-vd-core 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjI3N2NkYmE1ZGVkNDdiMWVhMWVkNDdjODUxNzZlMmQwNDYxNjJhYg==
4
+ NTEzOTNiYjZiOGQxYzQ3NzMyNGRlZjczYjNkYTdmMWUwZmEzMGI1ZQ==
5
5
  data.tar.gz: !binary |-
6
- MTljYjk2OTFmYTlkZjFjYjNhYjFhYTJlMDMwZmM3MTlhNTUxNjRkZA==
6
+ ZDRjYmY0MDRhMzBmOTRjMDMxYzQ2YzNlYmMzZWE0NzE3ZjEwN2YyOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmZhZTg2ZTFjOGFkYWVlODg0ZGRiOTA1OTRmMzUyMDA1N2IwNTU1MzY0NjE4
10
- YzhlYjRmNjhmNjFhNjkwZmUwOTRkMzZhMjU1NGQ5YzE1MWI5ZDI5MjI5ZWNi
11
- N2NiZTNkMTc0OTY5YjQxODhhYzgyM2ExYjVjYjFlZmNlYWQ3Nzg=
9
+ YTZhMjI4YzBkNTNmYzkxZTU3M2E0YTU2ZDVlYzMyNGJiMDExMTVjNTQxMjZl
10
+ OWU5NzVlZjJhMmQ0ZDAzOTA1ZmI5NTU0Y2ZmODk0ZGZhNjgzZGI0ZjIxYzE2
11
+ NjYxYzYwMTUxYjhmODMxOWFlYTMwNDY2NDQ3YjA0OTdjZTM4NTQ=
12
12
  data.tar.gz: !binary |-
13
- ZDMyMzc2NTExYWRiNDFhYjE5ZTNhOTM4NTM2OWNkYzU2ZTUzNDY1N2U5ZWQ4
14
- OTYwOTYwMjJkMjYxMDEwMWM5MjRiMmUzZGZjMDc2NTBhYzRjZDliMjE4OTEz
15
- MWY4MGEzZWI0NjBkODc1NzM1MTAwY2Y1ZmMxZDc4MzU3MmJiNTM=
13
+ Y2Q2MDAwY2E5OTJjNmFlODQ2MGU5NDc1ZGM5YjNiODc1Yjk3ZmNlYzM1Y2Ez
14
+ OGUwNTM4ZDRmYTg5MzZiOTkxOWY5ZjFlZDIyNGFjOTE2MmJmYjNhMDllYzQx
15
+ YTlkNjdiNjYxYjc0ZTRjZDZiZGIxMWRiMDUzYmQ5ZjY2OWRmYzY=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blsm-vd-core (0.4.0)
4
+ blsm-vd-core (0.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://ruby.taobao.org/
@@ -1,3 +1,3 @@
1
1
  module BlsmVdCore
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
data/lib/blsm-vd-core.rb CHANGED
@@ -81,7 +81,7 @@ module BlsmVdCore
81
81
  end
82
82
 
83
83
  #发送物流返款通知
84
- def send_cash_back_notify(order_id)
84
+ def send_cash_back_notify(order_id,wx_app_id=nil)
85
85
  order = Order.where(id: order_id).first
86
86
  seller = order.application.user if order && order.application
87
87
  #数据校验
@@ -90,7 +90,7 @@ module BlsmVdCore
90
90
 
91
91
  #物流返款通知
92
92
  seller_notify = {touser: seller.openid, order_id: Order.encrypt(Order.encrypted_id_key, order.id.to_s), content: "【物流返款通知】"}
93
- BlsmMpWx.create_msg(nil, seller.openid, seller_notify, 'order')
93
+ BlsmMpWx.create_msg(wx_app_id, seller.openid, seller_notify, 'order')
94
94
 
95
95
  ERROR_CODES[200]
96
96
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blsm-vd-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - saxer