blsm-vd-core 0.8.6 → 0.8.7

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: 7a7024f8c60f714a7dc64c2e85fd99772e66387c
4
- data.tar.gz: b8b06272892d1ca58fdb2d9a5bd5bc575bd12ea9
3
+ metadata.gz: 7418901e98965d96d06917fc0791c9b568936b33
4
+ data.tar.gz: bf33a84b4e5466e64c71206020b6bcd80305e442
5
5
  SHA512:
6
- metadata.gz: 93117d5705771ffb6533149d17f8638435a63a260a40c8fdb6c2a031437bd5d182a1132b66b147569f6e039789255630cddc191fefcfafce318b59f483d6d15a
7
- data.tar.gz: 66312c530f59671c539b8f335d0646a7e22d79fedea86dfc9c6ed675d2829463d3f4e7c5f5f6087f5f6c242a0e15acd62b7c024b25796f3c30ca33716aac4719
6
+ metadata.gz: 0fbe8d8b8fdd3f6582c84e92143294a9b03541de02d8579d645538e611600ee9c3893dd98a8b74ec132a3e83f563c10db60a23d3ce45767c73fe9287a1e1642b
7
+ data.tar.gz: 17ccc1b148c6456bb1dad36b330b1180ee7396c7aca281465710b395b782684e633cdba00916b7ca2755e1ab17cb8a29fe5258360f00f2a56306cb32ef639346
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blsm-vd-core (0.8.6)
4
+ blsm-vd-core (0.8.7)
5
5
 
6
6
  GEM
7
7
  remote: https://ruby.taobao.org/
@@ -1,3 +1,3 @@
1
1
  module BlsmVdCore
2
- VERSION = "0.8.6"
2
+ VERSION = "0.8.7"
3
3
  end
data/lib/blsm-vd-core.rb CHANGED
@@ -104,7 +104,7 @@ module BlsmVdCore
104
104
  # 进货费返还
105
105
  user_info = user.create_vd_user_info
106
106
  if !order.line_items.blank? && user_info.purchase_fee > 0
107
- franchise_price = order.line_items.inject(0){|result,item| result+item.franchise_price}
107
+ franchise_price = order.line_items.inject(0){|result,item| result+item.franchise_price*item.quantity}
108
108
  earn_amount = franchise_price < user_info.purchase_fee ? franchise_price : user_info.purchase_fee
109
109
  #创建结算项
110
110
  ClearingItem.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.8.6
4
+ version: 0.8.7
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-12-16 00:00:00.000000000 Z
12
+ date: 2017-01-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  version: '0'
228
228
  requirements: []
229
229
  rubyforge_project:
230
- rubygems_version: 2.4.8
230
+ rubygems_version: 2.4.3
231
231
  signing_key:
232
232
  specification_version: 4
233
233
  summary: "首趣微店核心模块"