blsm-vd-core 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/blsm-vd-core/model/vd_free_post.rb +2 -1
- 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: a0346a798cf2f0d295e570dd4099c2eac0b951f4
|
|
4
|
+
data.tar.gz: f94a3792ed6841bc0e722f39389f743f330efed0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 066ecd2929cb29151ea1ffb55e94811d055f0481fe43b701ecc807eef54dd1f4e0e2166a39704f3405139bc69b93e07f7665819c879a9497423a651f440363a1
|
|
7
|
+
data.tar.gz: 39442582e7c031749b8e42c6fc6290eb4aa5541f7d0673e3cf863726c5f988745250c77743104658979faf60520bd0c41ecec6b30e4157053c9002ee254d2b2b
|
data/Gemfile.lock
CHANGED
|
@@ -18,7 +18,8 @@ module BlsmVdCore
|
|
|
18
18
|
private
|
|
19
19
|
def gen_expire_at
|
|
20
20
|
unless self.expire_at
|
|
21
|
-
|
|
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
|
data/lib/blsm-vd-core/version.rb
CHANGED
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 = "
|
|
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
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
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.
|
|
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-
|
|
12
|
+
date: 2017-02-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rspec
|