|
|
@ -10,7 +10,7 @@ class Admins::ProfessionalAuths::AgreeApplyService < ApplicationService
|
|
|
|
ActiveRecord::Base.transaction do
|
|
|
|
ActiveRecord::Base.transaction do
|
|
|
|
apply.update!(status: 1)
|
|
|
|
apply.update!(status: 1)
|
|
|
|
user.update!(professional_certification: true)
|
|
|
|
user.update!(professional_certification: true)
|
|
|
|
|
|
|
|
user.update!(is_shixun_marker: true) if user.is_teacher?
|
|
|
|
RewardGradeService.call(user, container_id: user.id, container_type: 'Professional', score: 500)
|
|
|
|
RewardGradeService.call(user, container_id: user.id, container_type: 'Professional', score: 500)
|
|
|
|
|
|
|
|
|
|
|
|
deal_tiding!
|
|
|
|
deal_tiding!
|
|
|
|