From 5b7e86a8d36b74cfa4a692c190e82b3f9f8cf93e Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Fri, 30 Aug 2019 18:06:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/managements_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index 3f16995b..9fecfc28 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -3036,6 +3036,7 @@ end nickname: list[1].to_s.strip, professional_certification: 1, certification: 1, grade: 0, password: "12345678", phone: list[5].blank? ? nil : list[5], mail: nil} user = User.create(user_params) + user = User.find(prefix + list[0].to_s.strip) if user ue = UserExtensions.new(:user_id => user.id, :gender => 0, :school_id => school_id, :location => school.province, :location_city => school.city, :identity => list[3].to_i, :student_id => list[0].to_s.strip, :department_id => department.try(:id)) if list[3] && list[3].to_i == 0