From 6aec207bad9c5831a758bfef2f552a0408996b74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Sat, 13 Apr 2024 10:20:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=88=E9=94=8B=E6=9F=A5=E7=9C=8B=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E6=98=AF=E5=90=A6=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Services/Hncore.Pass.Vpn/Service/AgentClient5Service.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Services/Hncore.Pass.Vpn/Service/AgentClient5Service.cs b/Services/Hncore.Pass.Vpn/Service/AgentClient5Service.cs index bbb6a39..e359a3f 100644 --- a/Services/Hncore.Pass.Vpn/Service/AgentClient5Service.cs +++ b/Services/Hncore.Pass.Vpn/Service/AgentClient5Service.cs @@ -374,7 +374,7 @@ namespace Hncore.Pass.Vpn.Service { var password = "FyEomeyZ7P8pK3QQ5RcjVw=="; - var url = "http://webapi.shenlongip.com/searchvpn?username=admin1&password="+password+"&vpnAccount="+account; + var url = "http://webapi.shenlongip.com/checkvpn?username=admin1&password="+password+"&vpnAccount="+account; var client = CreateHttpClient(); @@ -382,9 +382,10 @@ namespace Hncore.Pass.Vpn.Service var content = await resp.Content.ReadAsStringAsync(); JObject jo = (JObject)JsonConvert.DeserializeObject(content); var status = jo["code"].ToString(); + var data = jo["data"]["exists"].ToString(); - if (status =="0") + if (data =="True") { return true; } else {