打印日志

dev_daiao
daiao 5 years ago
parent c3b5126d8a
commit 6c7d88248b

@ -74,7 +74,7 @@ class Users::ShixunService
when 'closed' then 3 when 'closed' then 3
end end
Rails.logger.info("######status: #{status}") Rails.logger.info("######status: #{status}")
Rails.logger.info("######relations: #{relations.map(&:id}") Rails.logger.info("######relations: #{relations.map(&:id)}")
relations = relations.where(status: status) if status relations = relations.where(status: status) if status
relations relations
end end

Loading…
Cancel
Save