diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index c93796a0..667d6632 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -869,7 +869,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: '18711085785', send_type:'apply_auth' , name: '管理员') + status = Trustie::Sms.send(mobile: '15388083362', send_type:'apply_auth' , name: '管理员') rescue => e Rails.logger.error "发送验证码出错: #{e}" end @@ -928,7 +928,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: '18711085785', send_type:'apply_pro_certification' , name: '管理员') + status = Trustie::Sms.send(mobile: '15388083362', send_type:'apply_pro_certification' , name: '管理员') rescue => e Rails.logger.error "发送验证码出错: #{e}" end @@ -937,7 +937,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: '18711085785', send_type:'apply_pro_certification' , name: '管理员') + status = Trustie::Sms.send(mobile: '15388083362', send_type:'apply_pro_certification' , name: '管理员') rescue => e Rails.logger.error "发送验证码出错: #{e}" end diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index 7c248e92..cd29cb0e 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -569,7 +569,7 @@ class ShixunsController < ApplicationController else ApplyAction.create(:container_type => "ApplyShixun", :container_id => @shixun.id, :user_id => User.current.id, :status => 0) begin - status = Trustie::Sms.send(mobile: '18711011226', send_type:'publish_shixun' , name: '管理员') + status = Trustie::Sms.send(mobile: '15388083362', send_type:'publish_shixun' , name: '管理员') rescue => e Rails.logger.error "发送验证码出错: #{e}" end diff --git a/app/controllers/subjects_controller.rb b/app/controllers/subjects_controller.rb index 61e56f9a..80ee323c 100644 --- a/app/controllers/subjects_controller.rb +++ b/app/controllers/subjects_controller.rb @@ -207,7 +207,7 @@ class SubjectsController < ApplicationController # notes = User.current.show_name.to_s + " 申请发布课程实训:#{@subject.name}" # JournalsForMessage.create(:jour_id => 1, :jour_type => 'Principal', :user_id => User.current.id, :notes => notes, :private => 1, :reply_id => 0) begin - status = Trustie::Sms.send(mobile: '18711011226', send_type:'publish_subject' , name: '管理员') + status = Trustie::Sms.send(mobile: '15388083362', send_type:'publish_subject' , name: '管理员') rescue => e Rails.logger.error "发送验证码出错: #{e}" end diff --git a/app/services/libraries/submit_service.rb b/app/services/libraries/submit_service.rb index 0beec7de..5e36f6ac 100644 --- a/app/services/libraries/submit_service.rb +++ b/app/services/libraries/submit_service.rb @@ -28,6 +28,6 @@ class Libraries::SubmitService Tiding.create!(user_id: 1, trigger_user_id: library.user_id, container_id: library.id, container_type: 'Library', tiding_type: 'Apply', status: 0) - Trustie::Sms.send(mobile: '18711011226', send_type:'publish_library' , name: '管理员') rescue nil + Trustie::Sms.send(mobile: '15388083362', send_type:'publish_library' , name: '管理员') rescue nil end end \ No newline at end of file