Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_admin
daiao 6 years ago
commit b1a2fad201

@ -69,7 +69,7 @@ class Users::UpdateAccountService < ApplicationService
end end
def sms_notify_admin def sms_notify_admin
Educoder::Sms.send(mobile:'18175896138', send_type:'teacher_register', name:'管理员') Educoder::Sms.send(mobile:'18182021083', send_type:'teacher_register', name:'管理员')
rescue => ex rescue => ex
Util.logger_error(ex) Util.logger_error(ex)
end end

@ -21,7 +21,7 @@ module Educoder
def self.notify_admin(opt) def self.notify_admin(opt)
opt[:name] = '管理员' opt[:name] = '管理员'
opt[:mobile] = ENV['NOTIFY_ADMIN_PHONE'] || EduSetting.get('notify_admin_phone') || '18711085785' opt[:mobile] = ENV['NOTIFY_ADMIN_PHONE'] || EduSetting.get('notify_admin_phone') || '18182021083'
send(opt) send(opt)
end end

Loading…
Cancel
Save