|
|
|
@ -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)
|
|
|
|
|