blsm-vd-core 0.5.4 → 0.5.5
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 +2 -2
- data/lib/blsm-vd-core.rb +6 -5
- 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: 5322b9f1fc63cec5898deb12eb89c730baae3e7b
|
4
|
+
data.tar.gz: a3790355fc522ab8399c526211166e8177fcf158
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0739e5eab287cd906bb470e96a304cbede812ba9b908caf0080d285187ed51c96ac28ae74ccfdd93cae9e048743e326099bdaf585ac0fc228c857f84f0c46616
|
7
|
+
data.tar.gz: 01b09720467e9fa8465c64373897718946b290caa87be9160b9bd5edf01bf4a81faedec109df489888dbe4b26675de719836b12f8483613a5a23d4ddbc9a34ec
|
data/Gemfile.lock
CHANGED
data/lib/blsm-vd-core/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module BlsmVdCore
|
2
|
-
VERSION = "0.5.
|
3
|
-
end
|
2
|
+
VERSION = "0.5.5"
|
3
|
+
end
|
data/lib/blsm-vd-core.rb
CHANGED
@@ -266,8 +266,8 @@ module BlsmVdCore
|
|
266
266
|
leader_change = order.get_vd_score(leader_info.vd_role)
|
267
267
|
# - 卖家是黑带,但是从属于某个黑带名下
|
268
268
|
if seller_info.is_black?
|
269
|
-
seller_change = 0
|
270
|
-
leader_change = (order.get_vd_score(seller_info.vd_role))
|
269
|
+
seller_change = (order.get_vd_score(seller_info.vd_role))*0.7
|
270
|
+
leader_change = (order.get_vd_score(seller_info.vd_role))*0.3
|
271
271
|
# - 卖家所属的黑带,是某个黑带的附属黑带
|
272
272
|
elsif leader_info.supervisor_slave && leader_info.supervisor
|
273
273
|
org_leader = leader_info.supervisor
|
@@ -275,13 +275,14 @@ module BlsmVdCore
|
|
275
275
|
leader_change = order.get_vd_score(leader_info.vd_role)*0.7
|
276
276
|
org_leader_change = order.get_vd_score(org_leader_info.vd_role)*0.3
|
277
277
|
end
|
278
|
-
|
279
|
-
|
278
|
+
#卖家是黑带
|
279
|
+
else
|
280
|
+
seller_change = order.get_vd_score(seller_info.vd_role) if seller_info.is_black?
|
280
281
|
end
|
281
282
|
|
282
283
|
# 卖家信息变动
|
283
284
|
# if seller_change!=0
|
284
|
-
|
285
|
+
seller_info.update_attributes({:score => seller_info.score.to_f+seller_change}) if seller_change!=0
|
285
286
|
seller_notify = {touser: seller.openid, change: seller_change, total: seller_info.score, content: "您好,订单#{order.number}已成功签收,分销#{franchise_sum}元"}
|
286
287
|
BlsmMpWx.create_msg(nil, seller.openid, seller_notify, 'score_change')
|
287
288
|
VdUserScore.create({
|
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.5.
|
4
|
+
version: 0.5.5
|
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: 2016-04-
|
12
|
+
date: 2016-04-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|