上传使用协议

This commit is contained in:
“wanyongkang”
2024-02-29 16:08:35 +08:00
parent 2212e1d966
commit 974be6af1d
4 changed files with 124 additions and 68 deletions

View File

@@ -363,7 +363,18 @@ namespace Hncore.Pass.Vpn.Service
var product = await m_ProductService.GetById(productId);
var agent = GetAgent(product);
agent.Init(product.BaseUrl, product.Token);
return await agent.OnLine(account);
if (productId == 28)
{
var accountInfo = await GetProductAccount(productId, account);
if (accountInfo.PackageName.Contains("静态")){
return await agent.OnLine(account+"-0");
} else {
return await agent.OnLine(account+"-1");
}
} else {
return await agent.OnLine(account);
}
}
/// <summary>
/// 踢号