need to fix license

This commit is contained in:
Yan
2017-12-19 16:54:11 +06:30
parent 4e616ed5eb
commit 3be8a56ac6
2 changed files with 55 additions and 11 deletions

View File

@@ -46,10 +46,12 @@ class ApplicationController < ActionController::Base
def current_license(url)
@license = License.new(url)
if (@license.detail_with_local_file() == true)
puts "RUN SAY BYAR"
if (@license.detail_with_local_file() == 0)
puts "Expired or No License!"
elsif (@license.detail_with_local_file() == 2)
puts "Expiring! pls, license extend..."
else
return nil
puts "RUN SAY BYAR"
end
end