Merge remote-tracking branch 'remotes/origin/develop' into educoder

dev_local
daiao 6 years ago
commit 205bfd0799

@ -685,7 +685,7 @@ class AccountController < ApplicationController
else else
code = VerificationCode.where(:email => params[:phone], :code => params[:code], :code_type => params[:type].to_i).last code = VerificationCode.where(:email => params[:phone], :code => params[:code], :code_type => params[:type].to_i).last
end end
req[:valid] = !code.nil? && (Time.now.to_i - code.created_at.to_i) <= 10*60
end end
render :json => req render :json => req
end end

@ -4153,7 +4153,7 @@ end
sheet1.row(0).default_format = blue sheet1.row(0).default_format = blue
sheet1.row(0).concat(["用户姓名","性别","职业","职称","地区"," 单位","子单位","注册时间","最后登录时间","授权"]) sheet1.row(0).concat(["用户姓名","性别","职业","职称","地区"," 单位","子单位","注册时间","最后登录时间","授权"])
count_row = 1 count_row = 1
users.find_each do |user| users.each do |user|
sheet1[count_row,0] = user.try(:show_real_name) sheet1[count_row,0] = user.try(:show_real_name)
sheet1[count_row,1] = user.sex sheet1[count_row,1] = user.sex
sheet1[count_row,2] = user.user_extensions.try(:show_identity) sheet1[count_row,2] = user.user_extensions.try(:show_identity)

Loading…
Cancel
Save