From 974dad2a5d34f5407a88a93e903d69c7b6e7c7e7 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 30 Aug 2019 18:44:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E7=94=A8=E6=88=B7=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/managements_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index b0307ae3..8f15d572 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -3034,7 +3034,7 @@ end department = school.departments.where(:name => list[2]).first user_params = {status: 1, login: prefix + list[0].to_s.strip, lastname: list[1].to_s.strip, nickname: list[1].to_s.strip, professional_certification: 1, certification: 1, grade: 0, - password: "12345678", phone: list[5].blank? ? nil : list[5], mail: "#{list[0].to_s.strip}@qq.com", profile_completed: 1} + password: "12345678", phone: list[5].blank? ? nil : list[5], mail: "#{prefix+list[0].to_s.strip}@qq.com", profile_completed: 1} user = User.create(user_params) user = User.find(prefix + list[0].to_s.strip) if user