|
|
|
@ -52,7 +52,7 @@ class Users::UpdateAccountService < ApplicationService
|
|
|
|
|
if first_full_reward
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
user
|
|
|
|
@ -68,8 +68,8 @@ class Users::UpdateAccountService < ApplicationService
|
|
|
|
|
params.slice(*%i[location location_city identity student_id technical_title school_id department_id])
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def sms_notify_admin
|
|
|
|
|
Educoder::Sms.send(mobile:'18182021083', send_type:'teacher_register', name:'管理员')
|
|
|
|
|
def sms_notify_admin name
|
|
|
|
|
Educoder::Sms.send(mobile:'18182021083', send_type:'teacher_register', name: name, user_name:'管理员')
|
|
|
|
|
rescue => ex
|
|
|
|
|
Util.logger_error(ex)
|
|
|
|
|
end
|
|
|
|
|