blsm-vd-core 0.9.0 → 0.9.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: a115c91cf7c5e6a5ba4c64b73b167fe21b0cfdd0
4
- data.tar.gz: 9b28f4df1fd5c1fe19eee72902f07c5aba3a562b
3
+ metadata.gz: a0346a798cf2f0d295e570dd4099c2eac0b951f4
4
+ data.tar.gz: f94a3792ed6841bc0e722f39389f743f330efed0
5
5
  SHA512:
6
- metadata.gz: ebd2c12cb6cb54af370ef8049807bc0ecec7bef5f10c37fa3c911478691f12bcaf9c19b94b1ac8d4af8b932d3239ef70bc7e9a10131105b75b6142ca0d7c2aa9
7
- data.tar.gz: 205d34055b0690dc7a0925526a8533e5ed39369a12ea22123dfdce76e31005a1dde4343215c223cec0c38fb15c5b5940bff7c6e91564904048f58f596ad57059
6
+ metadata.gz: 066ecd2929cb29151ea1ffb55e94811d055f0481fe43b701ecc807eef54dd1f4e0e2166a39704f3405139bc69b93e07f7665819c879a9497423a651f440363a1
7
+ data.tar.gz: 39442582e7c031749b8e42c6fc6290eb4aa5541f7d0673e3cf863726c5f988745250c77743104658979faf60520bd0c41ecec6b30e4157053c9002ee254d2b2b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blsm-vd-core (0.8.9)
4
+ blsm-vd-core (0.9.1)
5
5
 
6
6
  GEM
7
7
  remote: https://ruby.taobao.org/
@@ -18,7 +18,8 @@ module BlsmVdCore
18
18
  private
19
19
  def gen_expire_at
20
20
  unless self.expire_at
21
- self.expire_at = VdFreePost::DEFAULT_EXPIRE_AT
21
+ default_time = Setting.where(name: 'vd_free_post_default_expire').pluck(:value)[0]
22
+ self.expire_at = default_time || VdFreePost::DEFAULT_EXPIRE_AT
22
23
  end
23
24
  end
24
25
  end
@@ -1,3 +1,3 @@
1
1
  module BlsmVdCore
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
data/lib/blsm-vd-core.rb CHANGED
@@ -153,7 +153,7 @@ module BlsmVdCore
153
153
  product_count.times do
154
154
  VdFreePost.create({user_id: seller.id})
155
155
  end
156
- content = "您获取到#{product_count}张顺丰免费券,点击查看 http://w.url.cn/s/AQsuRun"
156
+ content = "恭喜您获得#{product_count}次免补差价发顺丰资格,点击查看 http://w.url.cn/s/AQsuRun\n有效期限:2月28日23:59:59到期"
157
157
  VdMpMsg.create!({
158
158
  app_id: BlsmMpWx.APP_ID,
159
159
  openid: seller.openid,
@@ -482,17 +482,17 @@ module BlsmVdCore
482
482
  VdRcMsgNotify.create_order_finish_notify(seller.username)
483
483
  end
484
484
 
485
- # 包邮券返款
486
- if order.vd_free_post
487
- ClearingItem.create({
488
- state: 'CASH_BACK',
489
- pay_type: "ZXZF",
490
- user_id: seller.id,
491
- order_id: -14,
492
- rate_of_profit: 1,
493
- earn_amount: order.shipping_charge
494
- })
495
- end
485
+ # # 包邮券返款
486
+ # if order.vd_free_post
487
+ # ClearingItem.create({
488
+ # state: 'CASH_BACK',
489
+ # pay_type: "ZXZF",
490
+ # user_id: seller.id,
491
+ # order_id: -14,
492
+ # rate_of_profit: 1,
493
+ # earn_amount: order.shipping_charge
494
+ # })
495
+ # end
496
496
 
497
497
  #供货全返还
498
498
  if order.line_items && seller_info.purchase_fee > 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.9.0
4
+ version: 0.9.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-01-06 00:00:00.000000000 Z
12
+ date: 2017-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec