去掉试用授权的判断

dev_aliyun
cxt 5 years ago
parent 5335ab2c7c
commit 2c4ce7e049

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

Loading…
Cancel
Save