blsm-vd-core 0.4.3 → 0.4.4

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: 293917be8067c41e3157f96f222dde205b060388
4
- data.tar.gz: 620482a81a17f90c57b1a9b2636e233d3130da9c
3
+ metadata.gz: a8927909fedb3e3426a16fcf983ce22457b1c12b
4
+ data.tar.gz: 9a7204665fdb30589b81c6bf17ca56539a1e2ecc
5
5
  SHA512:
6
- metadata.gz: c7f774540efce1127dbee47d451d6ce4c6d7e63b89540647e3c9a9f6f9ff20daeee70d174f3eaa9dfbb2c7b6975b49578ba482676c0dec72f47d7dde105f8200
7
- data.tar.gz: 931b15330311351aa070e057315522b80f06111dc2e7da50eabe19db6e128cb5a78f5703a0b8dfd186e1f304971237d819b8b1b6b06c0bc62774d7ab250097d1
6
+ metadata.gz: f71a8e38bcf9662f1557223e9a83e79fdf20d28b01650e7d30f56b9a2e0e0def610fed2148b96263bff1af2be0dd92902580ddc9357ac5cdbe5ab3f5b9ca2463
7
+ data.tar.gz: 880df049524b7228d0243265e13fd39d468cbc2d9661f30c1de5d508dede092079f851eb84daab42a07cdc841d3592d22334e7250e53c1bb756ca709facc39d2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blsm-vd-core (0.4.2)
4
+ blsm-vd-core (0.4.3)
5
5
 
6
6
  GEM
7
7
  remote: https://ruby.taobao.org/
@@ -1,3 +1,3 @@
1
1
  module BlsmVdCore
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
data/lib/blsm-vd-core.rb CHANGED
@@ -62,9 +62,9 @@ module BlsmVdCore
62
62
  end
63
63
 
64
64
  #已发货,准备收货=>订单被售卖出去
65
- if order.state.to_s.include?('已发货,准备收货')
66
- return on_order_sale_out(order.application.user_id, order_id) if order.application
67
- end
65
+ # if order.state.to_s.include?('已发货,准备收货')
66
+ # return on_order_sale_out(order.application.user_id, order_id) if order.application
67
+ # end
68
68
 
69
69
  #订单被取消=>删除结算项(扣除積分)
70
70
  if order.state.to_s.include?('订单取消')
@@ -72,8 +72,9 @@ module BlsmVdCore
72
72
  end
73
73
 
74
74
  #在线支付(客户签收,订单完成)=>确认结算项
75
- if order.pay_on_line? && order.state=='客户签收,订单完成'
76
- clearing_item.update_attributes({earn_amount: order.jm_profit, state: 'CASH_BACK'}) if clearing_item
75
+ if order.state.to_s.include?('客户签收,订单完成')
76
+ on_order_sale_out(order.application.user_id, order_id) if order.application
77
+ clearing_item.update_attributes({earn_amount: order.jm_profit, state: 'CASH_BACK'}) if clearing_item && order.pay_on_line?
77
78
  return ERROR_CODES[200]
78
79
  end
79
80
 
@@ -81,7 +82,7 @@ module BlsmVdCore
81
82
  end
82
83
 
83
84
  #发送物流返款通知
84
- def send_cash_back_notify(order_id,wx_app_id=nil)
85
+ def send_cash_back_notify(order_id, wx_app_id=nil)
85
86
  order = Order.where(id: order_id).first
86
87
  seller = order.application.user if order && order.application
87
88
  #数据校验
@@ -181,7 +182,7 @@ module BlsmVdCore
181
182
  data[:pay_type] = 'CODPAY'
182
183
  else
183
184
  data[:pay_type] = 'ZXZF'
184
- data[:state] = 'CASH_BACK'
185
+ # data[:state] = 'CASH_BACK'
185
186
  data[:real_amount] = order.total_fee
186
187
  end
187
188
 
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.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - saxer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2015-09-18 00:00:00.000000000 Z
12
+ date: 2015-11-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec