Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant into adminbsb_ui_changes

This commit is contained in:
phyusin
2018-04-23 19:21:20 +06:30
7 changed files with 112 additions and 52 deletions

View File

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

View File

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