From c3b5126d8a27def4df8e22ea88920b03e7bdde17 Mon Sep 17 00:00:00 2001
From: daiao <358551898@qq.com>
Date: Fri, 29 Nov 2019 11:45:32 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=97=A5=E5=BF=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/services/users/shixun_service.rb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app/services/users/shixun_service.rb b/app/services/users/shixun_service.rb
index da64abd5f..ffe51ff92 100644
--- a/app/services/users/shixun_service.rb
+++ b/app/services/users/shixun_service.rb
@@ -44,6 +44,7 @@ class Users::ShixunService
     Rails.logger.info("self_or_admin?: #{self_or_admin?}")
     Rails.logger.info("user: #{user.id}")
     Rails.logger.info("User.current.id : #{User.current.id }")
+    Rails.logger.info("relations : #{relations.map(&:id) }")
     if self_or_admin?
       relations = relations.where.not(status: -1)
       status_filter(relations)
@@ -72,6 +73,8 @@ class Users::ShixunService
              when 'published' then 2
              when 'closed'    then 3
              end
+    Rails.logger.info("######status: #{status}")
+    Rails.logger.info("######relations: #{relations.map(&:id}")
     relations = relations.where(status: status) if status
     relations
   end