dev_haigong
huang 6 years ago
parent a791f1bc53
commit 95098fafd4

@ -110,13 +110,13 @@ class ApplicationController < ActionController::Base
def ecloud_services_auth code, subject_id
subject = Subject.find(subject_id)
subject_level = subject.subject_level_system.try(:level)
case code
when "9200108001"
subject_level.to_i == 1 ? true : false
when "9200108002"
end
end
# case code
# when "9200108001"
# subject_level.to_i == 1 ? true : false
# when "9200108002"
#
# end
# end
end

Loading…
Cancel
Save