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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf06f824bd1d25b2793e0b6073d38e0e0e45f735
4
- data.tar.gz: 0dd16cf907fba3b29a279ad7cd96abc50062030e
3
+ metadata.gz: efb28c1e3bcac159da02aace1ec8c3f7e049f0e9
4
+ data.tar.gz: 5417d8327a29ed669eac889ded8f547912c869be
5
5
  SHA512:
6
- metadata.gz: 71d06195b7638e956184e6912b3f196a947ec36e1c159571a0c65388f069335e3a0d99ba6fb09b4d6ae3ff3f8a1e7afc08a3ae9f41db3963c11db4551cb062e1
7
- data.tar.gz: 702e4224a835088db47f1ea204c1af38a821fa1bdcb35d565ac04a00bb2be05ae270c14ad45aba01e3ecb0838de13235cfe1503440073a97000a64a552c1d4de
6
+ metadata.gz: c4c1f9f58de60de08e2de127ab1163832e0a36c8bd849440f01da09db8fa597a32e837e6813f044b033cc55e71ce1d510e234c8ce64597ebe17555877a310f83
7
+ data.tar.gz: 46c4130a0a65e08429dd4afce0f09f04f3043f8432c8eefca5f695703625fc4ae5d5e18b700a2cd1741a935b3174b30f0a0eed50f657e2ccb48725b8e0f447b5
@@ -1,3 +1,3 @@
1
1
  module BlsmVdCore
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
3
3
  end
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
- seller_change = 0 if seller_info.is_black?
279
+ seller_change = 0 if seller_info.is_black?
280
280
  end
281
281
 
282
282
  # 卖家信息变动
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
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.3
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-05 00:00:00.000000000 Z
12
+ date: 2016-04-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec