test license

This commit is contained in:
Yan
2017-11-10 19:03:10 +06:30
parent a70f9a43e6
commit a6252923f1
3 changed files with 7 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
class License
include HTTParty
base_uri "secure.smartsales.asia/api"
base_uri "provision.zsai.ws/api"
attr_accessor :name, :address_1, :address_2, :township, :city, :country, :email, :phone, :fax, :logo, :subdomain,
:plan_activation_date, :plan_next_renewal_date, :plan_max_products,:plan_max_customers, :plan_active_connections,
@@ -20,7 +20,7 @@ class License
end
# generate key for license file encrypt
AESCrypt.export_key()
AESEncDec.export_key()
@secret = ENV["aes_key"]
@params = { query: { device: "SX", token: SECRETS_CONFIG['provision_key'] } }