|
|
|
@ -154,7 +154,7 @@ class ApplicationController < ActionController::Base
|
|
|
|
|
tip_exception(402, info_url)
|
|
|
|
|
# render :json => { status: 402, url: info_url }
|
|
|
|
|
elsif current_user.certification != 1
|
|
|
|
|
day_cer = UserDayCertification.where(user_id: current_user.id).last
|
|
|
|
|
day_cer = UserDayCertification.find_by(user_id: current_user.id)
|
|
|
|
|
tip_exception(407, "系统未授权") unless (Time.now.to_i - day_cer.try(:created_at).to_i) < 86400
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|