From ee75356fa22dd11bbde5803e83778c7bd4bd7ffc Mon Sep 17 00:00:00 2001 From: yystopf Date: Fri, 5 Jul 2024 08:59:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=EF=BC=9A=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E8=80=85=E6=8E=92=E8=A1=8C=E6=A6=9C=E8=BF=94=E5=9B=9E=E4=B8=AA?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/user_rank_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/user_rank_controller.rb b/app/controllers/user_rank_controller.rb index 1d1a7b4f3..2e19a6896 100644 --- a/app/controllers/user_rank_controller.rb +++ b/app/controllers/user_rank_controller.rb @@ -1,7 +1,7 @@ class UserRankController < ApplicationController # 根据时间获取热门开发者 def index - limit = 3 + limit = 9 limit = params[:limit].to_i - 1 if params[:limit].present? limit = 99 if limit > 99 $redis_cache.zunionstore("recent-days-user-rank", get_timeable_key_names)