|
@@ -11,6 +11,7 @@ using WingCloudServer.Dongle;
|
|
|
using WingInterfaceLibrary.Enum;
|
|
|
using System.IO;
|
|
|
using WingInterfaceLibrary.Request.User;
|
|
|
+using Newtonsoft.Json;
|
|
|
|
|
|
namespace WingCloudServer.InteractionCenter
|
|
|
{
|
|
@@ -128,6 +129,28 @@ namespace WingCloudServer.InteractionCenter
|
|
|
|
|
|
//重新加载license验证;
|
|
|
new DongleValidService().CheckAndVerifyLicense();
|
|
|
+ IParameter notValue = new BoolParameter()
|
|
|
+ {
|
|
|
+ Section = "Services",
|
|
|
+ Name = "IsNeedVerifyFunctionalValue",
|
|
|
+ Value = false
|
|
|
+ };
|
|
|
+ EnvironmentConfigManager.SetParammeter("Services", "IsNeedVerifyFunctionalValue", notValue);
|
|
|
+
|
|
|
+ IParameter licenseIdParameter = new StringParameter()
|
|
|
+ {
|
|
|
+ Section = "Services",
|
|
|
+ Name = "SoftwareLicenseId",
|
|
|
+ Value = licenseInfo.LicenseId
|
|
|
+ };
|
|
|
+ EnvironmentConfigManager.SetParammeter("Services", "SoftwareLicenseId", licenseIdParameter);
|
|
|
+ IParameter curLicenseInfo = new StringParameter()
|
|
|
+ {
|
|
|
+ Section = "Services",
|
|
|
+ Name = "CurrentSoftwareLicenseInfo",
|
|
|
+ Value = JsonConvert.SerializeObject(licenseInfo)
|
|
|
+ };
|
|
|
+ EnvironmentConfigManager.SetParammeter("Services", "CurrentSoftwareLicenseInfo", curLicenseInfo);
|
|
|
return true;
|
|
|
}
|
|
|
|