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