|
|
|
@ -876,7 +876,7 @@ class AccountController < ApplicationController
|
|
|
|
|
if ApplyUserAuthentication.where(:user_id => @user.id, :status => 0, :auth_type => 1).count == 0
|
|
|
|
|
ApplyUserAuthentication.create(:user_id => @user.id, :status => 0, :auth_type => 1)
|
|
|
|
|
begin
|
|
|
|
|
status = Trustie::Sms.send(mobile: '18173242757', send_type:'apply_auth' , name: '管理员')
|
|
|
|
|
status = Trustie::Sms.send(mobile: '18711085785', send_type:'apply_auth' , name: '管理员')
|
|
|
|
|
rescue => e
|
|
|
|
|
Rails.logger.error "发送验证码出错: #{e}"
|
|
|
|
|
end
|
|
|
|
@ -935,7 +935,7 @@ class AccountController < ApplicationController
|
|
|
|
|
if ApplyUserAuthentication.where(:user_id => @user.id, :status => 0, :auth_type => 2).count == 0
|
|
|
|
|
ApplyUserAuthentication.create(:user_id => @user.id, :status => 0, :auth_type => 2)
|
|
|
|
|
begin
|
|
|
|
|
status = Trustie::Sms.send(mobile: '18173242757', send_type:'apply_pro_certification' , name: '管理员')
|
|
|
|
|
status = Trustie::Sms.send(mobile: '18711085785', send_type:'apply_pro_certification' , name: '管理员')
|
|
|
|
|
rescue => e
|
|
|
|
|
Rails.logger.error "发送验证码出错: #{e}"
|
|
|
|
|
end
|
|
|
|
@ -944,7 +944,7 @@ class AccountController < ApplicationController
|
|
|
|
|
if File.exist?(diskfile2)
|
|
|
|
|
ApplyUserAuthentication.create(:user_id => @user.id, :status => 0, :auth_type => 2)
|
|
|
|
|
begin
|
|
|
|
|
status = Trustie::Sms.send(mobile: '18173242757', send_type:'apply_pro_certification' , name: '管理员')
|
|
|
|
|
status = Trustie::Sms.send(mobile: '18711085785', send_type:'apply_pro_certification' , name: '管理员')
|
|
|
|
|
rescue => e
|
|
|
|
|
Rails.logger.error "发送验证码出错: #{e}"
|
|
|
|
|
end
|
|
|
|
|