This commit is contained in:
@@ -259,7 +259,7 @@ namespace AyaNova.Core
|
||||
// private static string SAMPLE_KEY = @"[KEY
|
||||
// {
|
||||
// ""Key"": {
|
||||
// ""LicenseFormat"": ""2018"",
|
||||
// ""LicenseFormat"": ""8"",
|
||||
// ""Id"": ""34-1516288681"", <----Customer id followed by key serial id
|
||||
// ""RegisteredTo"": ""Super TestCo"", or "REVOKED" if revoked
|
||||
// ""DBID"": ""df558559-7f8a-4c7b-955c-959ebcdf71f3"",
|
||||
@@ -794,7 +794,7 @@ EQIDAQAB
|
||||
Newtonsoft.Json.Linq.JToken token = Newtonsoft.Json.Linq.JObject.Parse(keyNoWS);
|
||||
|
||||
key.LicenseFormat = (string)token.SelectToken("Key.LicenseFormat");
|
||||
if (key.LicenseFormat != "2018")
|
||||
if (key.LicenseFormat != "8")
|
||||
throw new ApplicationException($"E1020 - License.Parse -> License key format {key.LicenseFormat} not recognized");
|
||||
key.Id = (string)token.SelectToken("Key.Id");
|
||||
key.RegisteredTo = (string)token.SelectToken("Key.RegisteredTo");
|
||||
|
||||
Reference in New Issue
Block a user