diff --git a/app/services/sources_service.rb b/app/services/sources_service.rb index 6d97acc8..aa95d382 100644 --- a/app/services/sources_service.rb +++ b/app/services/sources_service.rb @@ -102,9 +102,10 @@ class SourcesService # games start ############################################ def myshixuns_index params - time = Time.parse(params[:time].to_s) + endTime = Time.parse(params[:time].to_s) + beginTime = Time.parse(params[:begin_time].to_s) offset = ((params[:page] || 1).to_i - 1) * 50 - Myshixun.select([:id, :user_id, :shixun_id]).where("created_at < ?", time).offset(offset).limit(50) + Myshixun.select([:id, :user_id, :shixun_id]).where("created_at < ? and created_at > ?", endTime, beginTime).offset(offset).limit(50) end def search_myshixun params