|
|
|
@ -21,7 +21,7 @@ module Educoder
|
|
|
|
|
|
|
|
|
|
def self.notify_admin(opt)
|
|
|
|
|
opt[:name] = '管理员'
|
|
|
|
|
opt[:mobile] = ENV['NOTIFY_ADMIN_PHONE'] || EduSetting.get('notify_admin_phone') || '17680641960'
|
|
|
|
|
opt[:mobile] = ENV['NOTIFY_ADMIN_PHONE'] || EduSetting.get('notify_admin_phone') || '18182021083'
|
|
|
|
|
send(opt)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
@ -40,6 +40,8 @@ module Educoder
|
|
|
|
|
elsif send_type == 'competition_start'
|
|
|
|
|
params['text'] = "【Edu实训】亲爱的#{user_name},你参与的#{name}将于#{result}开始,请及时参赛"
|
|
|
|
|
Rails.logger.info "#{params['text']}"
|
|
|
|
|
elsif send_type == "teacher_register"
|
|
|
|
|
params['text'] = "【Edu实训】亲爱的#{user_name},有新的老师#{name}注册啦,请尽快处理"
|
|
|
|
|
elsif send_type == 'subject_authorization' || send_type == 'shixun_authorization'
|
|
|
|
|
params['text'] = "【Edu实训】亲爱的#{user_name},您提交的#{name}#{send_type=='subject_authorization'?'实训路径':'实训'}发布申请#{result},请登录平台查看详情"
|
|
|
|
|
Rails.logger.info "#{params['text']}"
|
|
|
|
|