Merge branch 'dev_aliyun' into develop

ecloud_sso
daiao 5 years ago
commit 438a0ff2e4

@ -18,7 +18,7 @@ namespace :tfxy do
teach_data_last_row = teach_data.last_row teach_data_last_row = teach_data.last_row
2.upto(teach_data_last_row) do |r| 2.upto(teach_data_last_row) do |r|
old_user = User.where("phone = '#{teach_data.cell(r, 5)}' OR mail = '#{teach_data.cell(r, 6)}' OR login = 'tfxy#{teach_data.cell(r, 1)}' " ) old_user = User.where("phone = '#{teach_data.cell(r, 5)}' OR mail = '#{teach_data.cell(r, 6)}' OR login = 'tfxy#{teach_data.cell(r, 1)}' " ).first
if !old_user.present? if !old_user.present?
user = User.new( user = User.new(

Loading…
Cancel
Save