api cloud update
This commit is contained in:
@@ -60,8 +60,8 @@ class License
|
||||
return true
|
||||
end
|
||||
else
|
||||
# @license = Marshal.load(cache_license)
|
||||
# assign(aes_key, aes_iv)
|
||||
@license = Marshal.load(cache_license)
|
||||
assign(aes_key, aes_iv)
|
||||
# Rails.logger.info 'API License'
|
||||
return true
|
||||
end
|
||||
|
||||
@@ -64,7 +64,7 @@ class MyAesCrypt
|
||||
shop_json["data"].each do |j|
|
||||
if j["lookup"] == from
|
||||
# add [0...44] for production cloud for remove \n
|
||||
if(j["value"]["key"][0...44] == token)
|
||||
if(j["value"]["key"] == token)
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user