蘑菇测试
This commit is contained in:
@@ -84,16 +84,29 @@ namespace Hncore.Pass.Vpn.Service
|
||||
interval ="3";
|
||||
packageKey = "month";
|
||||
}
|
||||
var map = new Dictionary<string, string>(){
|
||||
{"group","single" },
|
||||
{"number",account },
|
||||
{"password",pwd },
|
||||
{"connect",connCount.ToString()},
|
||||
{"interval",interval},
|
||||
{"type",packageKey},
|
||||
{"body","api"},
|
||||
{"mobile","13073735878"}
|
||||
};
|
||||
var map = new Dictionary<string, string>(){};
|
||||
|
||||
if(packageKey == "test"){
|
||||
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",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<ApiResult> 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<string, string>(){
|
||||
{"group","single" },
|
||||
{"number",account },
|
||||
{"password",pwd },
|
||||
{"connect",connCount.ToString()},
|
||||
{"interval","1"},
|
||||
{"type",packageKey},
|
||||
{"body","api"},
|
||||
{"mobile","13073735878"}
|
||||
};
|
||||
|
||||
var map = new Dictionary<string, string>(){};
|
||||
|
||||
Console.WriteLine("===============================================================================================");
|
||||
Console.WriteLine(packageKey);
|
||||
Console.WriteLine("===============================================================================================");
|
||||
|
||||
if(packageKey == "test"){
|
||||
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);
|
||||
LogHelper.Info(title, map.ToJson());
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user