mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-20 11:45:57 +08:00
用户审核详情调整
This commit is contained in:
@@ -3,9 +3,7 @@ class Admins::IdentityVerificationsController < Admins::BaseController
|
||||
def index
|
||||
params[:sort_by] = params[:sort_by].presence || 'created_at'
|
||||
params[:sort_direction] = params[:sort_direction].presence || 'desc'
|
||||
|
||||
identity_verifications = Admins::IdentityVerificationQuery.call(params)
|
||||
|
||||
@identity_verifications = paginate identity_verifications.preload(:user)
|
||||
end
|
||||
|
||||
@@ -16,9 +14,13 @@ class Admins::IdentityVerificationsController < Admins::BaseController
|
||||
end
|
||||
|
||||
def update
|
||||
@identity_verification.update(update_params)
|
||||
flash[:success] = '保存成功'
|
||||
render 'edit'
|
||||
if @identity_verification.update(update_params)
|
||||
redirect_to admins_identity_verifications_path
|
||||
flash[:success] = "更新成功"
|
||||
else
|
||||
redirect_to admins_identity_verifications_path
|
||||
flash[:danger] = "更新失败"
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user