dev_admin
cxt 6 years ago
parent 6ceea6b33e
commit 8b7f3bd517

@ -52,7 +52,7 @@ class Users::UpdateAccountService < ApplicationService
if first_full_reward if first_full_reward
RewardGradeService.call(user, container_id: user.id, container_type: 'Account', score: 500) RewardGradeService.call(user, container_id: user.id, container_type: 'Account', score: 500)
sms_notify_admin if user.user_extension.teacher? sms_notify_admin(user.lastname) if user.user_extension.teacher?
end end
user user
@ -68,8 +68,8 @@ class Users::UpdateAccountService < ApplicationService
params.slice(*%i[location location_city identity student_id technical_title school_id department_id]) params.slice(*%i[location location_city identity student_id technical_title school_id department_id])
end end
def sms_notify_admin def sms_notify_admin name
Educoder::Sms.send(mobile:'18182021083', send_type:'teacher_register', name:'管理员') Educoder::Sms.send(mobile:'18182021083', send_type:'teacher_register', name: name, user_name:'管理员')
rescue => ex rescue => ex
Util.logger_error(ex) Util.logger_error(ex)
end end

Loading…
Cancel
Save