This commit is contained in:
2022-06-22 03:21:34 +00:00
parent cae8a82783
commit 4102809635

View File

@@ -464,18 +464,20 @@ namespace AyaNovaQBI
//Get license //Get license
var r = await GetAsync("license"); var r = await GetAsync("license");
ALicense = r.ObjectResponse["data"]["license"].ToObject < AyaNovaLicense>(); ALicense = r.ObjectResponse["data"]["license"].ToObject < AyaNovaLicense>();
//UNEXPIRED AYANOVA LICENSE?
todo check this
//QBI LICENSED?
if (ALicense.features.FirstOrDefault(z => z.Feature == "QBI") == null) if (ALicense.features.FirstOrDefault(z => z.Feature == "QBI") == null)
{ {
initErrors.AppendLine("QBI not licensed"); initErrors.AppendLine("QBI not licensed");
return false; return false;
} }
//if (!r.ObjectResponse["data"].Value<bool>())
//{
// initErrors.AppendLine("QBI not licensed");
// return false;
//}
//check if build date is within licensed date (how did I do that automated build date thing?) //check if build date is within licensed date (how did I do that automated build date thing?)
// copy timestamp.cs and the createtimestamp.exe utility from v7 qbi and create build event to run it here and do same thing // copy timestamp.cs and the createtimestamp.exe utility from v7 qbi and create build event to run it here and do same thing
//check that AyaNova version matches required minimum for this QBI ( //check that AyaNova version matches required minimum for this QBI (