change 3 to 5

This commit is contained in:
nigel 2016-11-02 22:35:43 +08:00
parent 8f8a070643
commit ca80ff7fa4
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ class OpenSourceProjectsController < ApplicationController
star_items = res.body
require 'json'
star_items = JSON.parse(star_items)["items"]
star_project_ids = star_items[0,3]
star_project_ids = star_items[0,5]
star_projects = []
# 查询出id对应的项目
star_project_ids.each do |id|