漏洞检测

PCqiandao
daiao 5 years ago
parent 869d5d7ae4
commit e6aa87349e

@ -70,7 +70,7 @@ class ShixunsController < ApplicationController
end
## 排序参数
bsort = params[:sort] || 'desc'
bsort = (params[:sort] == "desc" ? "desc" : "asc")
case params[:order_by] || 'new'
when 'hot'
@shixuns = @shixuns.order("shixuns.public = 2 desc, shixuns.myshixuns_count #{bsort}")

Loading…
Cancel
Save