dev_aliyun
cxt 6 years ago
commit 4314222b12

@ -628,17 +628,19 @@ module ApplicationHelper
return return
end end
=end =end
if !User.current.profile_completed?
redirect_to my_account_path(need_profile_completed: true) # 暂时不需要试用授权
Rails.logger.info("check_authentication end") # if !User.current.profile_completed?
elsif User.current.certification != 1 # 系统没有授权 # redirect_to my_account_path
day_cer = UserDayCertification.where(:user_id => User.current.id).last # Rails.logger.info("check_authentication end")
unless (Time.now.to_i - day_cer.try(:created_at).to_i) < 86400 # elsif User.current.certification != 1 # 系统没有授权
redirect_to my_account_path # day_cer = UserDayCertification.where(:user_id => User.current.id).last
Rails.logger.info("check_authentication end") # unless (Time.now.to_i - day_cer.try(:created_at).to_i) < 86400
return # redirect_to my_account_path
end # Rails.logger.info("check_authentication end")
end # return
# end
# end
end end
def match_specific_symbol(str) def match_specific_symbol(str)

Loading…
Cancel
Save