|
|
|
@ -456,6 +456,8 @@ class AccountController < ApplicationController
|
|
|
|
|
@pref = @user.pref
|
|
|
|
|
@se = @user.extensions
|
|
|
|
|
|
|
|
|
|
old_identity = @se.identity
|
|
|
|
|
|
|
|
|
|
# 已授权的用户修改单位名称,需要重新授权
|
|
|
|
|
if @se.school_id != params[:occupation].to_i && @user.certification == 1
|
|
|
|
|
@user.certification = 0
|
|
|
|
@ -510,10 +512,15 @@ class AccountController < ApplicationController
|
|
|
|
|
@se.technical_title = params[:pro_technical_title] if params[:pro_technical_title]
|
|
|
|
|
@se.student_id = nil
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# @se.brief_introduction = params[:brief_introduction]
|
|
|
|
|
|
|
|
|
|
if @user.save && @se.save
|
|
|
|
|
|
|
|
|
|
if old_identity.nil? && @se.identity == 0
|
|
|
|
|
Trustie::Sms.send(mobile: '17680641960', send_type:'teacher_register', name: @user.login, user_name: "管理员")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
reward_grade(@user, @user.id, 'Account', 500)
|
|
|
|
|
|
|
|
|
|
if @user.certification != 1
|
|
|
|
|