blsm-vd-core 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blsm-vd-core/version.rb +1 -1
- data/lib/blsm-vd-core.rb +12 -12
- 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: efb28c1e3bcac159da02aace1ec8c3f7e049f0e9
|
4
|
+
data.tar.gz: 5417d8327a29ed669eac889ded8f547912c869be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4c1f9f58de60de08e2de127ab1163832e0a36c8bd849440f01da09db8fa597a32e837e6813f044b033cc55e71ce1d510e234c8ce64597ebe17555877a310f83
|
7
|
+
data.tar.gz: 46c4130a0a65e08429dd4afce0f09f04f3043f8432c8eefca5f695703625fc4ae5d5e18b700a2cd1741a935b3174b30f0a0eed50f657e2ccb48725b8e0f447b5
|
data/lib/blsm-vd-core/version.rb
CHANGED
data/lib/blsm-vd-core.rb
CHANGED
@@ -276,21 +276,21 @@ module BlsmVdCore
|
|
276
276
|
org_leader_change = order.get_vd_score(org_leader_info.vd_role)*0.3
|
277
277
|
end
|
278
278
|
else #卖家没有领导(黑带或者是独立店主)
|
279
|
-
|
279
|
+
seller_change = 0 if seller_info.is_black?
|
280
280
|
end
|
281
281
|
|
282
282
|
# 卖家信息变动
|
283
|
-
if seller_change!=0
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
end
|
283
|
+
# if seller_change!=0
|
284
|
+
# seller_info.update_attributes({:score => seller_info.score.to_f+seller_change})
|
285
|
+
seller_notify = {touser: seller.openid, change: seller_change, total: seller_info.score, content: "您好,订单#{order.number}已成功签收,分销#{franchise_sum}元"}
|
286
|
+
BlsmMpWx.create_msg(nil, seller.openid, seller_notify, 'score_change')
|
287
|
+
VdUserScore.create({
|
288
|
+
user_id: seller_id,
|
289
|
+
score: seller_change,
|
290
|
+
notes: "订单#{order.number}已成功签收,分销#{franchise_sum}元",
|
291
|
+
score_type: vd_transaction
|
292
|
+
})
|
293
|
+
# end
|
294
294
|
|
295
295
|
#黑带信息变动
|
296
296
|
if leader && leader_info && leader_change && leader_change!=0
|
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.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: 2016-04-
|
12
|
+
date: 2016-04-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|