mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
用户审核详情调整
This commit is contained in:
@@ -10,7 +10,7 @@ class Admins::IdentityVerificationQuery < ApplicationQuery
|
||||
end
|
||||
|
||||
def call
|
||||
state = params[:state].blank? ? [0,1,2] : params[:state].to_i
|
||||
state = params[:state] == "all" ? [0,1,2] : params[:state].nil? ? [0] : params[:state].to_i
|
||||
applies = IdentityVerification.where(state: state)
|
||||
custom_sort(applies, params[:sort_by], params[:sort_direction])
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user