水滴续费
This commit is contained in:
@@ -193,6 +193,7 @@ namespace Hncore.Pass.Vpn.Service
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Dictionary<string, string> map = new Dictionary<string, string>(){
|
Dictionary<string, string> map = new Dictionary<string, string>(){
|
||||||
|
{"t_id","121" },
|
||||||
{"product_id",product_id },
|
{"product_id",product_id },
|
||||||
{"product_sub_id",product_sub_id },
|
{"product_sub_id",product_sub_id },
|
||||||
{"product_item_id",product_item_id },
|
{"product_item_id",product_item_id },
|
||||||
@@ -462,22 +463,8 @@ namespace Hncore.Pass.Vpn.Service
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public override async Task<bool> Exist(string account)
|
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 false;
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private static Dictionary<string, string> signAct(Dictionary<string, string> body)
|
private static Dictionary<string, string> signAct(Dictionary<string, string> body)
|
||||||
|
|||||||
Reference in New Issue
Block a user