|
|
@ -1066,8 +1066,9 @@ class AccountController < ApplicationController
|
|
|
|
# end
|
|
|
|
# end
|
|
|
|
elsif !User.current.user_extensions.school.nil?
|
|
|
|
elsif !User.current.user_extensions.school.nil?
|
|
|
|
@tip = "申请已提交,我们将在5分钟内完成审核"
|
|
|
|
@tip = "申请已提交,我们将在5分钟内完成审核"
|
|
|
|
unless apply_action.present?
|
|
|
|
if !apply_action.present?
|
|
|
|
ApplyAction.create(:user_id => User.current.id, :status => 0, :ip_addr => request.remote_ip, :container_type => "TrialAuthorization", :apply_reason => params[:apply_reason])
|
|
|
|
ApplyAction.create(:user_id => User.current.id, :status => 0, :ip_addr => request.remote_ip, :container_type => "TrialAuthorization", :apply_reason => params[:apply_reason])
|
|
|
|
|
|
|
|
if user_ex.identity == 0 || user_ex.identity == 2
|
|
|
|
begin
|
|
|
|
begin
|
|
|
|
status = Trustie::Sms.send(mobile:17680641960, send_type:'user_apply_auth',name:'管理员' )
|
|
|
|
status = Trustie::Sms.send(mobile:17680641960, send_type:'user_apply_auth',name:'管理员' )
|
|
|
|
rescue => e
|
|
|
|
rescue => e
|
|
|
@ -1075,6 +1076,7 @@ class AccountController < ApplicationController
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
if params[:from_user] && params[:from_user] == '1'
|
|
|
|
if params[:from_user] && params[:from_user] == '1'
|
|
|
|
@url = "#{user_path(User.current)}"
|
|
|
|
@url = "#{user_path(User.current)}"
|
|
|
|
else
|
|
|
|
else
|
|
|
|