From 46176071b8c20e860586fc8370df388bbf374c86 Mon Sep 17 00:00:00 2001 From: xiaochong0302 Date: Sun, 6 Nov 2022 12:55:12 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=83=AD=E9=97=A8?= =?UTF-8?q?=E4=BD=9C=E8=80=85=EF=BC=8C=E7=AD=94=E4=B8=BB=E5=92=8C=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Home/Views/article/list.volt | 2 +- app/Http/Home/Views/question/list.volt | 4 ++-- app/Services/Logic/Article/TopAuthorList.php | 10 ++++++++-- app/Services/Logic/Question/HotQuestionList.php | 10 ++++++++-- app/Services/Logic/Question/TopAnswererList.php | 10 ++++++++-- 5 files changed, 27 insertions(+), 9 deletions(-) diff --git a/app/Http/Home/Views/article/list.volt b/app/Http/Home/Views/article/list.volt index aced081e..11fe75e8 100644 --- a/app/Http/Home/Views/article/list.volt +++ b/app/Http/Home/Views/article/list.volt @@ -4,7 +4,7 @@ {% set sort_val = request.get('sort','trim','latest') %} {% set pager_url = url({'for':'home.article.pager'}, params) %} - {% set top_authors_url = url({'for':'home.widget.top_authors'}) %} + {% set top_authors_url = url({'for':'home.widget.top_authors'},{'limit':5}) %} {% set my_tags_url = url({'for':'home.widget.my_tags'},{'type':'article'}) %}