request key
This commit is contained in:
@@ -233,13 +233,13 @@ class License
|
||||
def get_key
|
||||
api_token = read_license_no_decrypt("api_token")
|
||||
shop_name = read_license_no_decrypt("shop_name")
|
||||
@params = { query: {lookup_type: "application", api_token: api_token} }
|
||||
@params = { query: {lookup_type: "application", api_token: api_token } }
|
||||
response = self.class.get("/get_key", @params)
|
||||
@data = response.parsed_response
|
||||
|
||||
if (@data["status"])
|
||||
##Check from local redis - if available load local otherwise get from remote
|
||||
cache_key = "shop:#{shop_name}"
|
||||
cache_key = "shop:#{shop_name.chomp}"
|
||||
|
||||
cache_license = nil
|
||||
|
||||
|
||||
Reference in New Issue
Block a user