diff --git a/Services/Hncore.Pass.Vpn/Service/AgentClient9Service.cs b/Services/Hncore.Pass.Vpn/Service/AgentClient9Service.cs index 6ac4e7f..ed9fd7a 100644 --- a/Services/Hncore.Pass.Vpn/Service/AgentClient9Service.cs +++ b/Services/Hncore.Pass.Vpn/Service/AgentClient9Service.cs @@ -84,16 +84,29 @@ namespace Hncore.Pass.Vpn.Service interval ="3"; packageKey = "month"; } - var map = new Dictionary(){ - {"group","single" }, - {"number",account }, - {"password",pwd }, - {"connect",connCount.ToString()}, - {"interval",interval}, - {"type",packageKey}, - {"body","api"}, - {"mobile","13073735878"} - }; + var map = new Dictionary(){}; + + if(packageKey == "test"){ + map = new Dictionary(){ + {"group","test" }, + {"number",account }, + {"password",pwd }, + {"body","api"}, + {"mobile","13073735878"} + }; + } else { + map = new Dictionary(){ + {"group","single" }, + {"number",account }, + {"password",pwd }, + {"connect",connCount.ToString()}, + {"interval",interval}, + {"type",packageKey}, + {"body","api"}, + {"mobile","13073735878"} + }; + } + var title = GetOpTitle("NewAccount", account); LogHelper.Info(title, map.ToJson()); try @@ -129,16 +142,33 @@ namespace Hncore.Pass.Vpn.Service public override async Task NewMuiltAccount(string packageKey, string account, string pwd, int connCount = 1, int accountType = 1,int startNum=0, int endNum=1 ) { var client = CreateHttpClient(); - var map = new Dictionary(){ - {"group","single" }, - {"number",account }, - {"password",pwd }, - {"connect",connCount.ToString()}, - {"interval","1"}, - {"type",packageKey}, - {"body","api"}, - {"mobile","13073735878"} - }; + + var map = new Dictionary(){}; + + Console.WriteLine("==============================================================================================="); + Console.WriteLine(packageKey); + Console.WriteLine("==============================================================================================="); + + if(packageKey == "test"){ + map = new Dictionary(){ + {"group","test" }, + {"number",account }, + {"password",pwd }, + {"body","api"}, + {"mobile","13073735878"} + }; + } else { + map = new Dictionary(){ + {"group","single" }, + {"number",account }, + {"password",pwd }, + {"connect",connCount.ToString()}, + {"interval","1"}, + {"type",packageKey}, + {"body","api"}, + {"mobile","13073735878"} + }; + } var title = GetOpTitle("NewAccount", account); LogHelper.Info(title, map.ToJson()); try