|
|
|
@ -297,9 +297,9 @@ class ShixunsController < ApplicationController
|
|
|
|
|
|
|
|
|
|
# 首页实训导航点击时,type参数
|
|
|
|
|
def index
|
|
|
|
|
a = Shixun.order("myshixuns_count desc").limit(24).pluck(:git_url)
|
|
|
|
|
a = Shixun.joins(:shixun_tag_repertoires).where("shixun_tag_repertoires.tag_repertoire_id = 152").order("myshixuns_count desc").limit(24).pluck(:git_url)
|
|
|
|
|
logger.info("###########________git_url_____________##########{a}")
|
|
|
|
|
s = Shixun.order("myshixuns_count desc").limit(24).pluck(:id)
|
|
|
|
|
s = Shixun.joins(:shixun_tag_repertoires).where("shixun_tag_repertoires.tag_repertoire_id = 152").order("myshixuns_count desc").limit(24).pluck(:id)
|
|
|
|
|
logger.info("###########________shixun_ids_____________##########{s}")
|
|
|
|
|
|
|
|
|
|
@type = params[:type]
|
|
|
|
|