diff --git a/app/services/users/update_account_service.rb b/app/services/users/update_account_service.rb index d73c9c907..c54353140 100644 --- a/app/services/users/update_account_service.rb +++ b/app/services/users/update_account_service.rb @@ -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