先锋踢线
This commit is contained in:
@@ -327,7 +327,7 @@ namespace Hncore.Pass.Vpn.Service
|
||||
LoginIP = jsondata["client_ip"].ToString(),
|
||||
UpStream = "",
|
||||
DownStream = "",
|
||||
Id= "&user="+account+"&address="+jsondata["address"].ToString()+"&server_ip="+jsondata["server_ip"].ToString(),
|
||||
Id = "user="+account+"-address="+jsondata["address"].ToString()+"-server_ip="+jsondata["server_ip"].ToString(),
|
||||
|
||||
};
|
||||
|
||||
@@ -348,11 +348,18 @@ namespace Hncore.Pass.Vpn.Service
|
||||
/// <returns></returns>
|
||||
public override async Task<bool> KillOut(string id)
|
||||
{
|
||||
|
||||
var ids = "";
|
||||
if(id.Contains("-")){
|
||||
string[] arrStr = id.Split('-');
|
||||
ids = arrStr[0]+"&"+arrStr[1]+"&"+arrStr[2];
|
||||
}
|
||||
Console.WriteLine("==============在线============================================================================");
|
||||
Console.WriteLine(ids);
|
||||
Console.WriteLine("==============在线============================================================================");
|
||||
var secretId = "626B6170693231";
|
||||
var secretKey = "6b3fdfc206841f44c6609bf19c182a6a";
|
||||
|
||||
var url = "http://bkapi.pptp.biz/userapi3/?secretId="+secretId+"&secretKey="+secretKey+"&type=user_online_offline"+id;
|
||||
var url = "http://bkapi.pptp.biz/userapi3/?secretId="+secretId+"&secretKey="+secretKey+"&type=user_online_offline&"+ids;
|
||||
|
||||
var client = CreateHttpClient();
|
||||
|
||||
@@ -360,6 +367,9 @@ namespace Hncore.Pass.Vpn.Service
|
||||
var content = await resp.Content.ReadAsStringAsync();
|
||||
JObject jo = (JObject)JsonConvert.DeserializeObject(content);
|
||||
var status = jo["code"].ToString();
|
||||
Console.WriteLine("==============在线============================================================================");
|
||||
Console.WriteLine(jo);
|
||||
Console.WriteLine("==============在线============================================================================");
|
||||
if (status =="1")
|
||||
{
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user