blsm-vd-core 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NWU0YmY2YmQ4MjM2Y2ZhZjYyZmQ4ZWUzNDIzNmJkMGY0YzY1MDk1MA==
5
- data.tar.gz: !binary |-
6
- ZWMyNmQ1NzMyMGM0ZmJjYjFjOTIxNTMzNDVkZTgzYmU3NDA5ZTJlNQ==
2
+ SHA1:
3
+ metadata.gz: c8d161c0b8e6fac2d8ae793f4703c6e2669841ae
4
+ data.tar.gz: 998f0655c0e0735d9f607e753742aa979c477a97
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MzU0YTkxOGU3MTFiMjRmMTA2ZmE2YWQ3Y2M3NmZjYmNhYzI3N2U4ZDlhODA1
10
- MmNkOTRlNGNjMDIwOWE2YjFjNDM2ZDU3ODI5OGEzNjFhOTM5OGExMzI4ZWYz
11
- MTYyMmI0ZGJkMzQ1ZTVhZGQ0YWZlMzUwMWZlZTU2ZDE5MzMxZjE=
12
- data.tar.gz: !binary |-
13
- M2VmNjZiNzViMmRiYzQ5ODg2ZjUyYjcwYTVjMjliM2Q4MDI0Y2QxODg3NmZk
14
- N2RjZjA3MTYzN2U4NjBjYzc0NzAzNWViNDRjYWJmMDQ2MmM1NGNkMDU1NWQ3
15
- NzU5MTkyZTFkZTQzMGNhNjdiNTJhNzgzMGFmNTZkZDNkZWFiMmI=
6
+ metadata.gz: 13a6df8872910aff61e248fd72a5bd2da01f217e7f7cf1a05a20d8bd96b93458d743233aea4cfa5315de4902f6b49b109c2be7c7a49bbf5ebfed4eba333964d4
7
+ data.tar.gz: 674a4bae04f183559d5b6137643e19e0d9742b84c5605037b6b7bb3dcb4425745bddd16a4d0e70d5aa5967532561770f1f5e922a655bcc3d2d553315d3bcc877
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blsm-vd-core (0.1.8)
4
+ blsm-vd-core (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://ruby.taobao.org/
@@ -115,6 +115,3 @@ DEPENDENCIES
115
115
  rails (~> 3.2)
116
116
  rake (~> 10.0)
117
117
  rspec (~> 3.2)
118
-
119
- BUNDLED WITH
120
- 1.10.3
@@ -0,0 +1,8 @@
1
+ # coding: utf-8
2
+ module BlsmVdCore
3
+ class Application < BlsmVdCore::BaseRecord
4
+ self.table_name='applications'
5
+ belongs_to :user, class_name: "::BlsmVdCore::User"
6
+ has_many :orders, class_name: "::BlsmVdCore::Order"
7
+ end
8
+ end
@@ -5,7 +5,7 @@ module BlsmVdCore
5
5
  belongs_to :user, class_name: "::BlsmVdCore::User"
6
6
  belongs_to :order, class_name: "::BlsmVdCore::Order"
7
7
  belongs_to :clearing, class_name: "::BlsmVdCore::Clearing"
8
-
8
+
9
9
  #物流服务费
10
10
  def express_service_fee
11
11
  if self.pay_type=='CODPAY'
@@ -13,6 +13,7 @@ module BlsmVdCore
13
13
  end
14
14
  0
15
15
  end
16
+
16
17
  #可能的(预计)收入
17
18
  def possible_profit
18
19
  if self.state=='CASH_BACK'
@@ -20,7 +21,8 @@ module BlsmVdCore
20
21
  end
21
22
  sprintf('%0.2f', self.earn_amount * self.rate_of_profit - self.express_service_fee).to_f
22
23
  end
23
-
24
+
25
+ #拒签
24
26
  def marking_refuse(note, reduce_real_amount = 0)
25
27
  update_params = {}
26
28
  update_params[:notes] = note
@@ -31,7 +33,8 @@ module BlsmVdCore
31
33
  update_params[:rate_of_profit] = 1
32
34
  self.update_attributes(update_params)
33
35
  end
34
-
36
+
37
+ #确认
35
38
  def marking_confirm(note)
36
39
  update_params = Hash.new
37
40
  update_params[:notes] = note
@@ -4,17 +4,26 @@ module BlsmVdCore
4
4
  self.table_name='orders'
5
5
  has_many :clearing_items, class_name: "::BlsmVdCore::ClearingItem"
6
6
  has_many :line_items, class_name: "::BlsmVdCore::LineItem"
7
+ belongs_to :application, class_name: "::BlsmVdCore::Application", foreign_key: "application_id"
8
+
9
+ public
10
+ def pay_off_line?
11
+ self.pay_type == 1
12
+ end
13
+
14
+ def pay_on_line?
15
+ !(self.pay_off_line?)
16
+ end
7
17
 
8
- public
9
18
  #加盟商(微店主)赚取的利润(直接利润)
10
19
  def jm_profit
11
20
  jm_cost = 0
12
21
  if self.line_items
13
22
  self.line_items.each do |item|
14
- unless item.product_prop && item.product_prop.franchise_price
23
+ unless item && item.franchise_price
15
24
  next
16
25
  end
17
- jm_cost += item.quantity * (item.product_prop.franchise_price.to_f)
26
+ jm_cost += item.quantity * (item.franchise_price.to_f)
18
27
  end
19
28
  end
20
29
  sprintf('%0.2f', (self.total_fee - self.shipping_charge - jm_cost).to_f).to_f
@@ -35,12 +44,13 @@ module BlsmVdCore
35
44
  def total_fee
36
45
  sprintf('%0.2f', (self.item_total + self.shipping_charge).to_f).to_f
37
46
  end
47
+
38
48
  #真实的运费
39
49
  def real_shipping_charge
40
50
  if self.shipping_charge > 0
41
51
  return self.shipping_charge
42
52
  end
43
-
53
+
44
54
  conn = Faraday.new(:url => 'http://'+"api.aihuo360.com")
45
55
  response = conn.get do |req|
46
56
  req.url '/v2/shipping_charges'
@@ -59,14 +69,16 @@ module BlsmVdCore
59
69
  15
60
70
  end
61
71
  end
72
+
62
73
  private
63
-
74
+
64
75
  def self.valid_update?(clearing_item)
65
76
  if clearing_item[:state] == 'CASH_BACK'
66
77
  return false
67
78
  end
68
79
  return true
69
80
  end
81
+
70
82
  def self.latest_notes(clearing_item, user, action)
71
83
  notes = "#{user[:username] if user}"
72
84
  date_now = DateTime.parse(Time.now.to_s).strftime('%Y-%m-%d %H:%M:%S').to_s
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+ module BlsmVdCore
3
+ class VdInfoSec < BlsmVdCore::BaseRecord
4
+ self.table_name='vd_info_secs'
5
+ validates_uniqueness_of :transaction_no
6
+
7
+ #是否是危险操作,如此动作在信息安全库中可以查询到,
8
+ #说明此操作为危险动作,默认返回危险信息
9
+ #====Parameters
10
+ # * +vd_transaction+ - 交易描述
11
+ def self.dangerous?(vd_transaction)
12
+ vd_info_sec = VdInfoSec.where(transaction_no: Digest::MD5.hexdigest(vd_transaction)).first
13
+ if vd_info_sec
14
+ BlsmVdCore::ERROR_CODES[4010][:vd_info_sec]=vd_info_sec
15
+ return BlsmVdCore::ERROR_CODES[4010]
16
+ end
17
+ false
18
+ end
19
+
20
+ #录入安全信息
21
+ # #====Parameters
22
+ # * +vd_transaction+ - 交易描述
23
+ def self.committed(vd_transaction)
24
+ VdInfoSec.create({
25
+ transaction_no: Digest::MD5.hexdigest(vd_transaction),
26
+ description: vd_transaction
27
+ })
28
+ end
29
+ end
30
+ end
@@ -1,3 +1,3 @@
1
1
  module BlsmVdCore
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
3
3
  end
data/lib/blsm-vd-core.rb CHANGED
@@ -14,93 +14,203 @@ require 'blsm-vd-core/model/product'
14
14
  require 'blsm-vd-core/model/product_prop'
15
15
  require 'blsm-vd-core/model/vd_user_info'
16
16
  require 'blsm-vd-core/model/vd_user_score'
17
+ require 'blsm-vd-core/model/vd_info_sec'
17
18
  require 'blsm-vd-core/model/user'
19
+ require 'blsm-vd-core/model/application'
18
20
  require 'faraday'
21
+
19
22
  module BlsmVdCore
23
+
24
+ #错误代码
25
+ ERROR_CODES = {
26
+ 0 => {code: 0, msg: '什么都没发生'},
27
+
28
+ 401 => {code: 401, msg: '没有权限'},
29
+ 4010 => {code: 4010, msg: '安全校验未通过'},
30
+
31
+ 404 => {code: 404, msg: '订单未找到'},
32
+ 4042 => {code: 4042, msg: '结算项未找到'},
33
+ 4043 => {code: 4043, msg: '空订单'},
34
+ 4044 => {code: 4044, msg: '订单没有所属微店主'},
35
+ 4045 => {code: 4045, msg: '用户不存在'},
36
+
37
+ 200 => {code: 200, msg: '成功'}
38
+ }
20
39
  class << self
21
40
  attr_accessor :db_config
22
41
  end
42
+
23
43
  module_function
24
- #订单状态发生变化
44
+
45
+ #当订单状态发生变化时,调用此方法
46
+ #==== Parameters
47
+ # * +order_id+ - 订单id
25
48
  def order_state_change(order_id)
26
- order = Order.find_by_id(order_id)
27
- return "404-order" if order.nil?
28
- clearing_item = ClearingItem.find_by_order_id(order.id)
29
- return "404-clearing-item" if clearing_item.nil?
30
- #在线支付,客户签收,订单完成
31
- if order.pay_type == 0 && order.state=='客户签收,订单完成'
32
- clearing_item.update_attributes({earn_amount: order.jm_profit, state: 'CASH_BACK'})
33
- return "200-zxzf-clearing-item"
49
+ order = Order.where(id: order_id).first
50
+ clearing_item = ClearingItem.where(order_id: order.id).first if order
51
+
52
+ #数据校验
53
+ return ERROR_CODES[404] unless order
54
+ return ERROR_CODES[4042] unless clearing_item
55
+
56
+ #等待配货=>创建结算项
57
+ if order.state.to_s.include?('等待配货')
58
+ return create_clearing_item(order_id)
34
59
  end
60
+
61
+ #订单被取消=>删除结算项
35
62
  if order.state.to_s.include?('订单取消')
36
- clearing_items = order.clearing_items
37
- if clearing_items
38
- clearing_items.each { |item|
39
- if item.state != 'CASH_BACK'
40
- item.destroy
41
- end
42
- }
43
- return "200-delete-clearing-item"
44
- end
63
+ order.clearing_items.each { |item|
64
+ item.destroy unless item.state == 'CASH_BACK'
65
+ } if order.clearing_items
66
+ return ERROR_CODES[200]
45
67
  end
68
+
69
+ #在线支付(客户签收,订单完成)=>确认结算项
70
+ if order.pay_on_line? && order.state=='客户签收,订单完成'
71
+ clearing_item.update_attributes({earn_amount: order.jm_profit, state: 'CASH_BACK'})
72
+ return ERROR_CODES[200]
73
+ end
74
+
75
+ ERROR_CODES[0]
46
76
  end
77
+
47
78
  #物流返款
48
- def order_sign_handle(order_id,sign_type)
49
- order = Order.find_by_id(order_id)
50
- return "404-order" if order.nil?
51
- begin
52
- clearing_item = ClearingItem.find_by_order_id(order.id)
53
- return "404-clearing-item" if clearing_item.nil?
54
- if sign_type == "sign_ok" && !Order.valid_update?(clearing_item)
55
- return "already-cash-back"
56
- end
57
- rescue Exception, e
58
- return "500-error"
59
- end
79
+ #==== Parameters
80
+ # * +order_id+ - 订单id
81
+ # * +sign_type+ - 签收状态:ENUM('sign_ok','sign_fail')
82
+ def order_sign_handle(order_id, sign_type)
83
+ order = Order.where(id: order_id).first
84
+ clearing_item = ClearingItem.where(order_id: order.id).first if order
60
85
 
61
- result = if sign_type == "sign_ok"
62
- if clearing_item.pay_type == 'ZXZF'
63
- puts "非货到付款订单,不需要做啥操作"
64
- return "zxzf-not-need-handle"
65
- end
86
+ #数据校验
87
+ return ERROR_CODES[404] unless order
88
+ return ERROR_CODES[4042] unless clearing_item
89
+ return ERROR_CODES[0] if sign_type =~ /sign_ok/ && clearing_item.state.to_s =~ /CASH_BACK/
90
+
91
+ #安全校验
92
+ vd_transaction = "order_sign_handle_#{order_id}_#{sign_type}"
93
+ danger = VdInfoSec.dangerous?(vd_transaction)
94
+ return danger if danger
95
+
96
+ #货到付款(物流返款成功,订单完成)
97
+ if sign_type =~ /sign_ok/ && order.pay_off_line?
66
98
  note = Order.latest_notes(clearing_item, {username: '首趣'}, '标记物流返款')
67
99
  clearing_item.marking_confirm(note)
68
- elsif sign_type == "sign_fail"
100
+ VdInfoSec.committed(vd_transaction)
101
+ return ERROR_CODES[200]
102
+ end
103
+
104
+ #签收失败(拒签)
105
+ if sign_type =~ /sign_fail/
106
+ VdInfoSec.committed(vd_transaction)
69
107
  if clearing_item.clearing && clearing_item.clearing.state == "BALANCED"
70
- i_clearing = clearing_item.dup
108
+ i_clearing = clearing_item.clone
71
109
  i_clearing.clearing_id = nil
72
110
  i_clearing.save
73
111
  note = Order.latest_notes(clearing_item, {username: '首趣'}, '标记签收失败')
74
112
  i_clearing.marking_refuse(note, clearing_item.possible_profit)
113
+ return ERROR_CODES[200]
75
114
  else
76
115
  note = Order.latest_notes(clearing_item, {username: '首趣'}, '标记签收失败')
77
116
  clearing_item.marking_refuse(note)
117
+ return ERROR_CODES[200]
78
118
  end
79
119
  end
80
- sign_column = (sign_type == "sign_ok") ? "sign_ok" : "sign_fail"
81
- if result
82
- "sign-#{sign_column}-success"
83
- else
84
- "sign-#{sign_column}-error"
120
+
121
+ ERROR_CODES[0]
122
+ end
123
+
124
+ #创建(更新)结算项
125
+ #调用此方法,只会创建一个对应的结算项,如果之前有结算项,会直接更新相应的结算项
126
+ #==== Parameters
127
+ # * +order_id+ - 订单id
128
+ def create_clearing_item(order_id)
129
+ order = Order.where(id: order_id).first
130
+ line_items = order.line_items if order
131
+ user = order.application.user if order && order.application
132
+
133
+ #数据校验
134
+ return ERROR_CODES[404] unless order
135
+ return ERROR_CODES[4043] unless line_items && !line_items.empty?
136
+ return ERROR_CODES[4044] unless user
137
+
138
+ user_info = user.create_vd_user_info
139
+
140
+ #没有对应的结算项
141
+ if order.clearing_items.empty?
142
+ if order.state=='等待配货'
143
+ data = {}
144
+ data[:order_id] = order.id
145
+ data[:order_amount] = order.total_fee
146
+ data[:earn_amount] = order.jm_profit
147
+ data[:user_id] = user.id
148
+ data[:item_type] ='default'
149
+ data[:rate_of_profit] = user_info.profit_rate
150
+ data[:state] = 'WAIT_TO_SURE'
151
+
152
+ if order.pay_off_line?
153
+ data[:pay_type] = 'CODPAY'
154
+ else
155
+ data[:pay_type] = 'ZXZF'
156
+ data[:state] = 'CASH_BACK'
157
+ data[:real_amount] = order.total_fee
158
+ end
159
+ ClearingItem.new(data).save
160
+ return ERROR_CODES[200]
161
+ end
85
162
  end
163
+
164
+ #有对应的结算项(逐个去更新)
165
+ order.clearing_items.each { |item|
166
+ unless item.state == 'CASH_BACK'
167
+ data = {}
168
+ data[:order_id] = order.id
169
+ data[:order_amount] = order.total_fee
170
+ data[:earn_amount] = order.jm_profit
171
+ data[:rate_of_profit] = user_info.profit_rate
172
+ if order.pay_off_line?
173
+ data[:pay_type] = 'CODPAY'
174
+ else
175
+ data[:pay_type] = 'ZXZF'
176
+ data[:real_amount] = order.total_fee
177
+ end
178
+ item.update_attributes(data)
179
+ return ERROR_CODES[200]
180
+ end
181
+ }
182
+
183
+ ERROR_CODES[0]
184
+
86
185
  end
87
186
 
88
187
  #【积分获取】商品售卖出去
188
+ # 什么时候调用此方法合适?当订单的状态变更为‘已发货,准备收货’时,标明商品已经被售出
89
189
  #微店主的积分会根据商品总的供货价的
90
190
  #商品卖出,微店主会获取直接的 订单供货价 * +SCORES[:SALE_OUT_DIRECT]+ 积分
91
191
  # 微店主所属的队长(直接上级)获取 订单供货价 * +SCORES[:SALE_OUT_INDIRECT]+ 积分
92
192
  #==== Parameters
93
193
  # * +seller_id+ - 销售员的id
94
194
  # * +order_id+ - 订单id
95
- def product_sale_out(seller_id, order_id)
195
+ def order_sale_out(seller_id, order_id)
96
196
  seller = User.where(id: seller_id).first
97
197
  leader = User.where("id in(select supervisor_id from vd_user_infos where user_id=#{seller_id})").first
98
198
  order = Order.where(id: order_id).first
99
199
 
200
+ return ERROR_CODES[4045] unless seller
201
+ return ERROR_CODES[401] if !order || !order.application || !(order.application.user_id==seller_id)
202
+
203
+ #安全校验
204
+ vd_transaction = "order_sale_out_#{seller_id}_#{order_id}"
205
+ danger = VdInfoSec.dangerous?(vd_transaction)
206
+ return danger if danger
207
+
208
+ #卖家和团队领导的信息
100
209
  seller_info = seller.create_vd_user_info
101
210
  leader_info = leader && leader.is_vd_black? ? leader.create_vd_user_info : nil
102
211
 
103
- franchise_sum = order.franchise_sum #供货价总和
212
+ #供货价总和
213
+ franchise_sum = order.franchise_sum
104
214
 
105
215
  #积分获取
106
216
  seller_info.update_attributes({:score => seller_info.score.to_f+franchise_sum.to_f*VdUserScore::SCORES[:SALE_OUT_DIRECT]})
@@ -118,6 +228,15 @@ module BlsmVdCore
118
228
  notes: "成员【#{seller.username}】分销#{franchise_sum}元,订单#{order_id}完成"
119
229
  }) if leader_info
120
230
 
121
- #TODO:销售额、分销额增加
231
+ #店主销售额、分销额增加
232
+ seller_info.update_attributes({:sale_sum => seller_info.sale_sum.to_f + order.total_fee.to_f})
233
+ seller_info.update_attributes({:distribute_sum => seller_info.distribute_sum.to_f + order.franchise_sum.to_f})
234
+
235
+ #安全库录入信息
236
+ VdInfoSec.committed(vd_transaction)
237
+
238
+ ERROR_CODES[200]
239
+
122
240
  end
241
+
123
242
  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: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - saxer
@@ -14,126 +14,126 @@ dependencies:
14
14
  name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.2'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.9'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.9'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '10.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '3.2'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.2'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mysql2
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: 0.3.16
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.3.16
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: activemodel
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '3.2'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '3.2'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: activerecord
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '3.2'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '3.2'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: activesupport
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: '3.2'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '3.2'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: faraday
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ~>
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0.9'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ~>
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0.9'
139
139
  description: 首趣微店核心模块,包含结算项的创建、更新、删除,微店主积分的更改等信息
@@ -143,8 +143,8 @@ executables: []
143
143
  extensions: []
144
144
  extra_rdoc_files: []
145
145
  files:
146
- - .gitignore
147
- - .travis.yml
146
+ - ".gitignore"
147
+ - ".travis.yml"
148
148
  - Gemfile
149
149
  - Gemfile.lock
150
150
  - README.md
@@ -157,6 +157,7 @@ files:
157
157
  - config/database.yml
158
158
  - lib/blsm-vd-core.rb
159
159
  - lib/blsm-vd-core/model/active_record.rb
160
+ - lib/blsm-vd-core/model/application.rb
160
161
  - lib/blsm-vd-core/model/clearing.rb
161
162
  - lib/blsm-vd-core/model/clearing_item.rb
162
163
  - lib/blsm-vd-core/model/line_item.rb
@@ -164,6 +165,7 @@ files:
164
165
  - lib/blsm-vd-core/model/product.rb
165
166
  - lib/blsm-vd-core/model/product_prop.rb
166
167
  - lib/blsm-vd-core/model/user.rb
168
+ - lib/blsm-vd-core/model/vd_info_sec.rb
167
169
  - lib/blsm-vd-core/model/vd_user_info.rb
168
170
  - lib/blsm-vd-core/model/vd_user_score.rb
169
171
  - lib/blsm-vd-core/version.rb
@@ -178,12 +180,12 @@ require_paths:
178
180
  - lib
179
181
  required_ruby_version: !ruby/object:Gem::Requirement
180
182
  requirements:
181
- - - ! '>='
183
+ - - ">="
182
184
  - !ruby/object:Gem::Version
183
185
  version: '0'
184
186
  required_rubygems_version: !ruby/object:Gem::Requirement
185
187
  requirements:
186
- - - ! '>='
188
+ - - ">="
187
189
  - !ruby/object:Gem::Version
188
190
  version: '0'
189
191
  requirements: []