From 529e8e5fe6f1a00d3c5b9c3c744c222c31093d0b Mon Sep 17 00:00:00 2001 From: jasder Date: Tue, 11 May 2021 18:20:59 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20=E4=B8=80=E7=BA=A7=E6=9D=BF=E5=9D=97?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E5=B8=96=E5=AD=90=E5=88=97=E8=A1=A8=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/forum_sections_service.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/services/forum_sections_service.rb b/app/services/forum_sections_service.rb index 3317a37b..951e181d 100644 --- a/app/services/forum_sections_service.rb +++ b/app/services/forum_sections_service.rb @@ -366,7 +366,7 @@ class ForumSectionsService unless @forum_section.parent_id.present? children_forums = @forum_section.child_ids select_section_ids = select_section_ids + children_forums - end + #end select_section_ids.uniq # page = params[:page].to_i @@ -418,7 +418,7 @@ class ForumSectionsService unless @forum_section.parent_id.present? children_forums = @forum_section.child_ids select_section_ids = select_section_ids + children_forums - end + # end select_section_ids.uniq # page = params[:page].to_i @@ -461,10 +461,10 @@ class ForumSectionsService return {status: -1, message: "请登录"} unless check_user_permission(current_user, params[:id]) select_section_ids = [params[:id]] - unless @forum_section.parent_id.present? + # unless @forum_section.parent_id.present? children_forums = @forum_section.child_ids select_section_ids = select_section_ids + children_forums - end + # end select_section_ids.uniq # page = params[:page].to_i