From 2346378547ec51d5135adab402492b8268b87f0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Mon, 26 Feb 2024 11:38:54 +0800 Subject: [PATCH] =?UTF-8?q?http=20=E4=BB=A3=E7=90=86=E9=93=BE=E6=8E=A5=20-?= =?UTF-8?q?=20=E5=85=88=E9=94=8B=E7=BB=AD=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Host/Views/User/HttpPackageList.cshtml | 2 +- .../Hncore.Pass.Vpn/Service/AgentClient5Service.cs | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/Host/Views/User/HttpPackageList.cshtml b/Host/Views/User/HttpPackageList.cshtml index 5196d6e..4122f11 100644 --- a/Host/Views/User/HttpPackageList.cshtml +++ b/Host/Views/User/HttpPackageList.cshtml @@ -671,7 +671,7 @@ } }, create_api_link(){ - this.api_link = 'https://get.ip.juip.com/get/ip?'; + this.api_link = 'http://get.ip.juip.com/get/ip?'; var regions_list = this.regions.join(","); for (let key in this.api_link_item) { diff --git a/Services/Hncore.Pass.Vpn/Service/AgentClient5Service.cs b/Services/Hncore.Pass.Vpn/Service/AgentClient5Service.cs index e27e55a..bbb6a39 100644 --- a/Services/Hncore.Pass.Vpn/Service/AgentClient5Service.cs +++ b/Services/Hncore.Pass.Vpn/Service/AgentClient5Service.cs @@ -63,10 +63,6 @@ namespace Hncore.Pass.Vpn.Service JObject jo = (JObject)JsonConvert.DeserializeObject(content); var status = jo["code"].ToString(); - Console.WriteLine("================================================="); - Console.WriteLine(jo); - Console.WriteLine("================================================="); - if (status =="0") { @@ -114,7 +110,6 @@ namespace Hncore.Pass.Vpn.Service /// public override async Task NewReAccount(string packageKey, string account, int connCount, int payCount = 1) { - var password = "FyEomeyZ7P8pK3QQ5RcjVw=="; var url = "http://webapi.shenlongip.com/renewvpn?username=admin1&password="+password+"&mealId="+packageKey+"&vpnAccount="+account; @@ -196,14 +191,15 @@ namespace Hncore.Pass.Vpn.Service { var trData = new OriginAccountModel { + Id = account, Account = account, - Pwd = jo["data"]["vpnPassword"].ToString(), - AccountType = jo["data"]["mealType"].ToString(), - Package = jo["data"]["mealType"].ToString(), + Pwd = "", + AccountType = "", + Package = "", RegistTime = "", EndTime = "", RestTime = "", - ConnectCount = jo["data"]["mealTylinkspe"].ToString(), + ConnectCount = "", Amount = "", IsActive = "", Remark = "",