From 809ba92eef93f3a54d874bb640b3484c06fef97e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Tue, 16 Apr 2024 14:24:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B0=B4=E6=BB=B4=E7=BB=AD=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/AgentClient13Service.cs | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/Services/Hncore.Pass.Vpn/Service/AgentClient13Service.cs b/Services/Hncore.Pass.Vpn/Service/AgentClient13Service.cs index cd025d5..489ba58 100644 --- a/Services/Hncore.Pass.Vpn/Service/AgentClient13Service.cs +++ b/Services/Hncore.Pass.Vpn/Service/AgentClient13Service.cs @@ -193,6 +193,7 @@ namespace Hncore.Pass.Vpn.Service } } Dictionary map = new Dictionary(){ + {"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 /// public override async Task Exist(string account) { - Dictionary map = new Dictionary(); - 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; }