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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/blsm-vd-core/version.rb +1 -1
- data/lib/blsm-vd-core.rb +8 -7
- 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: a8927909fedb3e3426a16fcf983ce22457b1c12b
|
4
|
+
data.tar.gz: 9a7204665fdb30589b81c6bf17ca56539a1e2ecc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f71a8e38bcf9662f1557223e9a83e79fdf20d28b01650e7d30f56b9a2e0e0def610fed2148b96263bff1af2be0dd92902580ddc9357ac5cdbe5ab3f5b9ca2463
|
7
|
+
data.tar.gz: 880df049524b7228d0243265e13fd39d468cbc2d9661f30c1de5d508dede092079f851eb84daab42a07cdc841d3592d22334e7250e53c1bb756ca709facc39d2
|
data/Gemfile.lock
CHANGED
data/lib/blsm-vd-core/version.rb
CHANGED
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
|
-
|
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.
|
76
|
-
|
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.
|
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-
|
12
|
+
date: 2015-11-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|