蘑菇测试
This commit is contained in:
@@ -84,16 +84,29 @@ namespace Hncore.Pass.Vpn.Service
|
|||||||
interval ="3";
|
interval ="3";
|
||||||
packageKey = "month";
|
packageKey = "month";
|
||||||
}
|
}
|
||||||
var map = new Dictionary<string, string>(){
|
var map = new Dictionary<string, string>(){};
|
||||||
{"group","single" },
|
|
||||||
{"number",account },
|
if(packageKey == "test"){
|
||||||
{"password",pwd },
|
map = new Dictionary<string, string>(){
|
||||||
{"connect",connCount.ToString()},
|
{"group","test" },
|
||||||
{"interval",interval},
|
{"number",account },
|
||||||
{"type",packageKey},
|
{"password",pwd },
|
||||||
{"body","api"},
|
{"body","api"},
|
||||||
{"mobile","13073735878"}
|
{"mobile","13073735878"}
|
||||||
};
|
};
|
||||||
|
} else {
|
||||||
|
map = new Dictionary<string, string>(){
|
||||||
|
{"group","single" },
|
||||||
|
{"number",account },
|
||||||
|
{"password",pwd },
|
||||||
|
{"connect",connCount.ToString()},
|
||||||
|
{"interval",interval},
|
||||||
|
{"type",packageKey},
|
||||||
|
{"body","api"},
|
||||||
|
{"mobile","13073735878"}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
var title = GetOpTitle("NewAccount", account);
|
var title = GetOpTitle("NewAccount", account);
|
||||||
LogHelper.Info(title, map.ToJson());
|
LogHelper.Info(title, map.ToJson());
|
||||||
try
|
try
|
||||||
@@ -129,16 +142,33 @@ namespace Hncore.Pass.Vpn.Service
|
|||||||
public override async Task<ApiResult> NewMuiltAccount(string packageKey, string account, string pwd, int connCount = 1, int accountType = 1,int startNum=0, int endNum=1 )
|
public override async Task<ApiResult> NewMuiltAccount(string packageKey, string account, string pwd, int connCount = 1, int accountType = 1,int startNum=0, int endNum=1 )
|
||||||
{
|
{
|
||||||
var client = CreateHttpClient();
|
var client = CreateHttpClient();
|
||||||
var map = new Dictionary<string, string>(){
|
|
||||||
{"group","single" },
|
var map = new Dictionary<string, string>(){};
|
||||||
{"number",account },
|
|
||||||
{"password",pwd },
|
Console.WriteLine("===============================================================================================");
|
||||||
{"connect",connCount.ToString()},
|
Console.WriteLine(packageKey);
|
||||||
{"interval","1"},
|
Console.WriteLine("===============================================================================================");
|
||||||
{"type",packageKey},
|
|
||||||
{"body","api"},
|
if(packageKey == "test"){
|
||||||
{"mobile","13073735878"}
|
map = new Dictionary<string, string>(){
|
||||||
};
|
{"group","test" },
|
||||||
|
{"number",account },
|
||||||
|
{"password",pwd },
|
||||||
|
{"body","api"},
|
||||||
|
{"mobile","13073735878"}
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
map = new Dictionary<string, string>(){
|
||||||
|
{"group","single" },
|
||||||
|
{"number",account },
|
||||||
|
{"password",pwd },
|
||||||
|
{"connect",connCount.ToString()},
|
||||||
|
{"interval","1"},
|
||||||
|
{"type",packageKey},
|
||||||
|
{"body","api"},
|
||||||
|
{"mobile","13073735878"}
|
||||||
|
};
|
||||||
|
}
|
||||||
var title = GetOpTitle("NewAccount", account);
|
var title = GetOpTitle("NewAccount", account);
|
||||||
LogHelper.Info(title, map.ToJson());
|
LogHelper.Info(title, map.ToJson());
|
||||||
try
|
try
|
||||||
|
|||||||
Reference in New Issue
Block a user