|
|
@ -19,7 +19,7 @@ class Users::ApplyProfessionalAuthService < ApplicationService
|
|
|
|
extension.department_id = params[:department_id]
|
|
|
|
extension.department_id = params[:department_id]
|
|
|
|
extension.identity = params[:identity]
|
|
|
|
extension.identity = params[:identity]
|
|
|
|
|
|
|
|
|
|
|
|
user.professional_certification = extension.identity != 0
|
|
|
|
user.professional_certification = params[:identity] != "teacher"
|
|
|
|
|
|
|
|
|
|
|
|
extra = params[:extra].to_s.strip.presence
|
|
|
|
extra = params[:extra].to_s.strip.presence
|
|
|
|
if extension.identity.to_s == 'student'
|
|
|
|
if extension.identity.to_s == 'student'
|
|
|
|