|
|
|
@ -21,7 +21,7 @@ module Educoder
|
|
|
|
|
|
|
|
|
|
def self.notify_admin(opt)
|
|
|
|
|
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') || '18670760309'
|
|
|
|
|
send(opt)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
@ -49,7 +49,7 @@ module Educoder
|
|
|
|
|
elsif send_type == "apply_pro_certification" || send_type == "apply_auth"
|
|
|
|
|
params['text'] = "【Edu实训】亲爱的#{name},有新的#{send_type == 'apply_pro_certification'?'职业':'实名'}认证申请,请尽快处理"
|
|
|
|
|
elsif send_type == "publish_subject" ||send_type == "publish_shixun"|| send_type == "user_apply_auth" || send_type == "discuss"
|
|
|
|
|
params['mobile'] = EduSetting.get('subject_shixun_notify_phone') || '18711011226' if send_type == "publish_subject" || send_type == "publish_shixun"
|
|
|
|
|
params['mobile'] = EduSetting.get('subject_shixun_notify_phone') || '17347001317' if send_type == "publish_subject" || send_type == "publish_shixun"
|
|
|
|
|
params['text'] = "【Edu实训】亲爱的#{name},有新的#{send_type == 'publish_subject'?'实训路径':(send_type == 'publish_shixun' ? '实训' : (send_type == 'discuss' ? '实训评论':'试用'))}申请发布,请尽快处理"
|
|
|
|
|
elsif send_type == 'join_course_multi_role'
|
|
|
|
|
params['text'] = "【Edu实训】亲爱的#{user_name},您的课堂#{name}有助教或者教师申请加入,请尽快审核"
|
|
|
|
|