blsm-vd-core 1.0.0 → 1.0.1

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: c63ee96870e6501fe03865cc9a89633395928b1a
4
- data.tar.gz: e7f969c72148ccdc569a6e18c29678c7e3a86791
3
+ metadata.gz: 601d611307527fb03f9f94545961cc3c02e7b33c
4
+ data.tar.gz: abb6f44eab1cb92cbeeb041c34cf121b2d0131ac
5
5
  SHA512:
6
- metadata.gz: dd78046d1ef23a80e31445f75c9783840116816badf745af578b84a865731ee4e12c47426a99a00573b4c5b3372799b2eb7f6cd7a06b233c784ca21335a06da6
7
- data.tar.gz: 79171ed7dc9a6109acd304c88f211b99a4ad842482c7480806df0c6e189e458557ffb4e47e7f2a179f3430c9229844ebd3f0642c5c9007a254589baaa9edd3a1
6
+ metadata.gz: 23f7653eaa982c6f1c477fe48f805b1a224a14a9ebfac106b4624482243c3eebb5248d0268e3b1bc27c4c0042ee0c27a131b71f06d41b8f4885607a99520bcbb
7
+ data.tar.gz: be37cb71369ebbcf24db2286ddef7f446f3d520f72a05db71a9f3ae05db2400668117544a7ecb51b5f8d33ccaaaff92cad92ec9e7cf0222fe047eff6beeacdc5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blsm-vd-core (1.0.0)
4
+ blsm-vd-core (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://ruby.taobao.org/
data/lib/blsm-vd-core.rb CHANGED
@@ -724,7 +724,7 @@ module BlsmVdCore
724
724
  reward = 0
725
725
  LineItem.where(:order_id => order.id).each do |line_item|
726
726
  product_prop = line_item.product_prop
727
- reward += line_item.quantity*product_prop.inviter_reward if !product_prop.blank?
727
+ reward += line_item.quantity*product_prop.inviter_reward if product_prop && line_item.sale_price!=0
728
728
  end
729
729
 
730
730
  if reward > 0
@@ -1,3 +1,3 @@
1
1
  module BlsmVdCore
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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: 1.0.0
4
+ version: 1.0.1
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: 2017-02-27 00:00:00.000000000 Z
12
+ date: 2017-03-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec