水滴续费
This commit is contained in:
@@ -193,6 +193,7 @@ namespace Hncore.Pass.Vpn.Service
|
||||
}
|
||||
}
|
||||
Dictionary<string, string> map = new Dictionary<string, string>(){
|
||||
{"t_id","121" },
|
||||
{"product_id",product_id },
|
||||
{"product_sub_id",product_sub_id },
|
||||
{"product_item_id",product_item_id },
|
||||
@@ -462,21 +463,7 @@ namespace Hncore.Pass.Vpn.Service
|
||||
/// <returns></returns>
|
||||
public override async Task<bool> Exist(string account)
|
||||
{
|
||||
Dictionary<string, string> map = new Dictionary<string, string>();
|
||||
map.Add("user", account);
|
||||
map.Add("type", "0");
|
||||
map = signAct(map);
|
||||
|
||||
var client = CreateHttpClient();
|
||||
var resp = await client.PostAsForm("https://jyip.net/open-api//check-vpn-account-exists", map);
|
||||
var content = await resp.Content.ReadAsStringAsync();
|
||||
JObject jo = (JObject)JsonConvert.DeserializeObject(content);
|
||||
|
||||
|
||||
if (jo["code"].ToString() == "404") {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user