This commit is contained in:
@@ -5,7 +5,7 @@ namespace AyaNova.Util
|
||||
/// </summary>
|
||||
internal static class AyaNovaVersion
|
||||
{
|
||||
public const string VersionString = "8.0.0-alpha.6";
|
||||
public const string VersionString = "8.0.0-alpha.7";
|
||||
public const string FullNameAndVersion = "AyaNova server " + VersionString;
|
||||
}//eoc
|
||||
}//eons
|
||||
@@ -29,12 +29,14 @@ namespace AyaNova.Core
|
||||
{
|
||||
|
||||
//License server address
|
||||
#if (DEBUG)
|
||||
// private const string LICENSE_SERVER_URL = "https://nothing.exqqwweerccbjhjtgfample.com/";
|
||||
private const string LICENSE_SERVER_URL = "http://localhost:3001/";
|
||||
#else
|
||||
private const string LICENSE_SERVER_URL = "https://rockfish.ayanova.com/";
|
||||
#endif
|
||||
|
||||
// #if (DEBUG)
|
||||
// // private const string LICENSE_SERVER_URL = "https://nothing.exqqwweerccbjhjtgfample.com/";
|
||||
// private const string LICENSE_SERVER_URL = "http://localhost:3001/";
|
||||
// #else
|
||||
// private const string LICENSE_SERVER_URL = "https://rockfish.ayanova.com/";
|
||||
// #endif
|
||||
|
||||
//Unlicensed token
|
||||
private const string UNLICENSED_TOKEN = "UNLICENSED";
|
||||
@@ -497,15 +499,15 @@ namespace AyaNova.Core
|
||||
else
|
||||
log.LogInformation($"Fetching license for DBID {LicenseDbId}");
|
||||
|
||||
var FetchRequest=new dtoFetchRequest(){DbId=LicenseDbId};
|
||||
var FetchRequest = new dtoFetchRequest() { DbId = LicenseDbId };
|
||||
string sUrl = $"{LICENSE_SERVER_URL}rvf";
|
||||
try
|
||||
{
|
||||
// string ResponseText = await ServiceProviderProvider.HttpClientFactory.CreateClient().GetStringAsync(sUrl);
|
||||
|
||||
|
||||
var content = new StringContent(JsonConvert.SerializeObject(FetchRequest), Encoding.UTF8, "application/json");
|
||||
var client = ServiceProviderProvider.HttpClientFactory.CreateClient();
|
||||
var res = await client.PostAsync(sUrl, content);
|
||||
var res = await client.PostAsync(sUrl, content);
|
||||
if (res.IsSuccessStatusCode)
|
||||
{
|
||||
var responseText = await res.Content.ReadAsStringAsync();
|
||||
|
||||
Reference in New Issue
Block a user