This commit is contained in:
“wanyongkang”
2021-01-12 16:20:57 +08:00
parent 334bf69440
commit 7ce815f2be
2 changed files with 565 additions and 0 deletions

View File

@@ -57,6 +57,8 @@ namespace Hncore.Pass.Vpn.Service
agent = new AgentClient6Service(m_HttpClientFactory) { ClientName = product.GroupNO };
if (product.GroupNO == "g7")
agent = new AgentClient7Service(m_HttpClientFactory) { ClientName = product.GroupNO };
if (product.GroupNO == "g8")
agent = new AgentClient8Service(m_HttpClientFactory) { ClientName = product.GroupNO };
agent.Product = product;
return agent;
}
@@ -188,6 +190,10 @@ namespace Hncore.Pass.Vpn.Service
var agent = GetAgent(product);
agent.Init(product.BaseUrl, product.Token);
Console.WriteLine("========================================================================");
Console.WriteLine(packageId);
Console.WriteLine(package.PackageType);
Console.WriteLine("========================================================================");
if (package.PackageType == PackageType.Base)
{
var ret = await agent.NewAccount(package.OriginKey, account, pwd, connCount, accountType,payCount);