更改:开发者排行榜返回个数

This commit is contained in:
yystopf 2024-07-05 08:59:54 +08:00
parent 3d9b36888a
commit ee75356fa2
1 changed files with 1 additions and 1 deletions

View File

@ -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)