blsm-vd-core 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blsm-vd-core/model/vd_user_info.rb +1 -10
- data/lib/blsm-vd-core/version.rb +1 -1
- 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: 3d55f917867d36eeae772420209a25f91aaef6c4
|
4
|
+
data.tar.gz: 940c62e5d74e1c1a4abe0ffb3c029cf6d0baa97c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f14cd881d9a0d6ca5b3f538ccb7ff7b8995b38ee33b20cd6f515373a37f2b7c0227328f40c1c4bf3440d0b2e1669bcec8877498398f1e1a40b8af1b31b7235f
|
7
|
+
data.tar.gz: 16296f56e85dc3768532bf66f843801e491955696318101a3c39dc261b2f8cc2af140893d519fae1b9199761c3964175876e05243c7a5f7d11f3cdea0e26dd6e
|
@@ -6,8 +6,6 @@ module BlsmVdCore
|
|
6
6
|
belongs_to :user, class_name: '::BlsmVdCore::User'
|
7
7
|
belongs_to :supervisor, class_name: '::BlsmVdCore::User'
|
8
8
|
|
9
|
-
after_save :sync_shop_state #同步用户拥有的店铺的状态
|
10
|
-
|
11
9
|
LEVELS = {
|
12
10
|
1 => '普通店主',
|
13
11
|
2 => '金牌店主',
|
@@ -46,12 +44,5 @@ module BlsmVdCore
|
|
46
44
|
1
|
47
45
|
end
|
48
46
|
|
49
|
-
def sync_shop_state
|
50
|
-
if level >=2 && self.user
|
51
|
-
self.user.applications.each do |shop|
|
52
|
-
shop.update_attributes({support_hdfk: true})
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
47
|
end
|
57
|
-
end
|
48
|
+
end
|
data/lib/blsm-vd-core/version.rb
CHANGED
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.
|
4
|
+
version: 0.8.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: 2016-12-
|
12
|
+
date: 2016-12-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|