From 81028aebd3ba370586655127974dbf26d0d6660d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Thu, 15 Apr 2021 15:08:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A9=E5=A4=A9=E8=98=91=E8=8F=87=E9=80=9A?= =?UTF-8?q?=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Host/Views/Product/Index.cshtml | 12 ++-- Host/Views/Product/ReBuyIndex.cshtml | 12 ++-- .../Service/AgentClient1Service.cs | 20 +++---- .../Service/AgentClient9Service.cs | 58 +++++++++---------- 4 files changed, 51 insertions(+), 51 deletions(-) diff --git a/Host/Views/Product/Index.cshtml b/Host/Views/Product/Index.cshtml index 1a3b937..4940576 100644 --- a/Host/Views/Product/Index.cshtml +++ b/Host/Views/Product/Index.cshtml @@ -584,15 +584,15 @@ @if(item.Product.Id == 17){

双月卡赠送1个月,仅限新开账号,续费帐号不赠送,活动截止时间2020年4月15日
(同一个IP账号仅限一次,每位会员不限账号数量,您可购买多个IP账号都有赠送)

} - @* @if(item.Product.Id == 18){ -

月卡送1周,双月卡赠送1个月,季卡送两个月,新开和续费都有赠送
(同一个IP账号仅限一次,每位会员不限账号数量,您可购买多个IP账号都有赠送)

- } *@ + @if(item.Product.Id == 18){ +

应上级主管部门要求,为了遵守相关法律法规,合法合规运营,对本产品进行整改。
整改期间未到期账号可正常使用,不能新开及续费。整改工作结束时间会在18号左右公布,由此给您带来很大的麻烦,请您谅解。

+ } @* @if(item.Product.Id == 4){

全部套餐8折聚惠,天卡除外,新开和续费都有8折,活动截止时间11月20日
(同一个IP账号不限次数,您可对同一账号多次续费都有赠送,每位会员不限账号数量,您可购买多个IP账号都有赠送)

} *@ - @* @if(item.Product.Id == 14){ -

月卡赠送7天,双月卡赠送1个月,仅限新开账号,续费帐号不赠送,活动截止时间2020年12月1日。
(同一个IP账号仅限一次,每位会员不限账号数量,您可购买多个IP账号都有赠送)

- } *@ + @if(item.Product.Id == 14){ +

应上级主管部门要求,为了遵守相关法律法规,合法合规运营,对本产品进行整改。
整改期间未到期账号可正常使用,不能新开及续费。整改工作结束时间会在18号左右公布,由此给您带来很大的麻烦,请您谅解。

+ } @* @if(item.Product.Id == 1){

公告:
强子IP已更新完毕,截止于3月15日晚上10点半,所有未到期的账号(包括天卡)已补两天时间。
电脑客户端(强子IP和讯连IP)已更新完毕,您可到(软件下载)中下载最新版本!

diff --git a/Host/Views/Product/ReBuyIndex.cshtml b/Host/Views/Product/ReBuyIndex.cshtml index 9c0e186..e9728d5 100644 --- a/Host/Views/Product/ReBuyIndex.cshtml +++ b/Host/Views/Product/ReBuyIndex.cshtml @@ -329,15 +329,15 @@ @if(defaultProduct.Id == 17){

双月卡赠送1个月,仅限新开账号,续费帐号不赠送,活动截止时间2020年4月15日
(同一个IP账号仅限一次,每位会员不限账号数量,您可购买多个IP账号都有赠送)

} - @* @if(defaultProduct.Id == 18){ -

月卡送1周,双月卡赠送1个月,季卡送两个月,新开和续费都有赠送
(同一个IP账号仅限一次,每位会员不限账号数量,您可购买多个IP账号都有赠送)

- } *@ + @if(defaultProduct.Id == 18){ +

应上级主管部门要求,为了遵守相关法律法规,合法合规运营,对本产品进行整改。
整改期间未到期账号可正常使用,不能新开及续费。整改工作结束时间会在18号左右公布,由此给您带来很大的麻烦,请您谅解。

+ } @* @if(defaultProduct.Id == 4){

全部套餐8折聚惠,天卡除外,新开和续费都有8折,活动截止时间11月20日
(同一个IP账号不限次数,您可对同一账号多次续费都有赠送,每位会员不限账号数量,您可购买多个IP账号都有赠送)

} *@ - @* @if(defaultProduct.Id == 14){ -

月卡赠送7天,双月卡赠送1个月,仅限新开账号,续费帐号不赠送,活动截止时间2020年12月1日。
(同一个IP账号仅限一次,每位会员不限账号数量,您可购买多个IP账号都有赠送)

- } *@ + @if(defaultProduct.Id == 14){ +

应上级主管部门要求,为了遵守相关法律法规,合法合规运营,对本产品进行整改。
整改期间未到期账号可正常使用,不能新开及续费。整改工作结束时间会在18号左右公布,由此给您带来很大的麻烦,请您谅解。

+ } @* @if(defaultProduct.Id == 1){

公告:
强子IP已更新完毕,截止于3月15日晚上10点半,所有未到期的账号(包括天卡)已补两天时间。
电脑客户端(强子IP和讯连IP)已更新完毕,您可到(软件下载)中下载最新版本!

diff --git a/Services/Hncore.Pass.Vpn/Service/AgentClient1Service.cs b/Services/Hncore.Pass.Vpn/Service/AgentClient1Service.cs index bef5d19..1c6f4e2 100644 --- a/Services/Hncore.Pass.Vpn/Service/AgentClient1Service.cs +++ b/Services/Hncore.Pass.Vpn/Service/AgentClient1Service.cs @@ -537,16 +537,16 @@ namespace Hncore.Pass.Vpn.Service /// public override async Task Exist(string account) { - var client = CreateHttpClient(); - var title = GetOpTitle("Exist", account); - LogHelper.Info(title, account); - var testRet = await this.NewAccount("free", account, "1234", 1, 0); - if (testRet.Code == ResultCode.C_SUCCESS) - { - await DeleteAccount(account); - return false; - } - return true; + // var client = CreateHttpClient(); + // var title = GetOpTitle("Exist", account); + // LogHelper.Info(title, account); + // var testRet = await this.NewAccount("free", account, "1234", 1, 0); + // if (testRet.Code == ResultCode.C_SUCCESS) + // { + // await DeleteAccount(account); + // return false; + // } + return false; } } } diff --git a/Services/Hncore.Pass.Vpn/Service/AgentClient9Service.cs b/Services/Hncore.Pass.Vpn/Service/AgentClient9Service.cs index 8ffecd2..e44d194 100644 --- a/Services/Hncore.Pass.Vpn/Service/AgentClient9Service.cs +++ b/Services/Hncore.Pass.Vpn/Service/AgentClient9Service.cs @@ -389,55 +389,55 @@ namespace Hncore.Pass.Vpn.Service public override async Task Refund(string account, string packageKey, int days) { - var infoRet = await this.GetAccountInfo(account); - // Console.WriteLine(infoRet.ToJson()); - // await Task.Delay(50); - var id = infoRet.Data.Id; + // var infoRet = await this.GetAccountInfo(account); + // // Console.WriteLine(infoRet.ToJson()); + // // await Task.Delay(50); + // var id = infoRet.Data.Id; - //{"DefaultRequestHeaders":[{"Key":"hl","Value":["hl"]},{"Key":"Cookie","Value":["EtV1DHm0lJwaH9n4dhKUOIGSO8XKroVSRY7shrgFTJyzk3hANqLsVoiYAIzDR8M7"]},{"Key":"Authorization","Value":["Bearer EtV1DHm0lJwaH9n4dhKUOIGSO8XKroVSRY7shrgFTJyzk3hANqLsVoiYAIzDR8M7"]}],"BaseAddress":"http://xjip.hlapi.com/","Timeout":"00:01:40","MaxResponseContentBufferSize":2147483647} - // var client = CreateHttpClient(); - // var get_token = client.DefaultRequestHeaders.GetCookies()[0].Cookies[0].Name; + // //{"DefaultRequestHeaders":[{"Key":"hl","Value":["hl"]},{"Key":"Cookie","Value":["EtV1DHm0lJwaH9n4dhKUOIGSO8XKroVSRY7shrgFTJyzk3hANqLsVoiYAIzDR8M7"]},{"Key":"Authorization","Value":["Bearer EtV1DHm0lJwaH9n4dhKUOIGSO8XKroVSRY7shrgFTJyzk3hANqLsVoiYAIzDR8M7"]}],"BaseAddress":"http://xjip.hlapi.com/","Timeout":"00:01:40","MaxResponseContentBufferSize":2147483647} + // // var client = CreateHttpClient(); + // // var get_token = client.DefaultRequestHeaders.GetCookies()[0].Cookies[0].Name; - HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://xjip.hlapi.com/api/number/refund"); + // HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://xjip.hlapi.com/api/number/refund"); - req.Method = "DELETE"; + // req.Method = "DELETE"; - req.ContentType = "application/x-www-form-urlencoded"; - req.Headers.Add("Authorization", "Bearer w1v9MjG58z6qEzKPUVAdyhRBM8h1vYZVAGc4YpGx525APv9YHQPKuxVMt5EpF87A"); + // req.ContentType = "application/x-www-form-urlencoded"; + // req.Headers.Add("Authorization", "Bearer w1v9MjG58z6qEzKPUVAdyhRBM8h1vYZVAGc4YpGx525APv9YHQPKuxVMt5EpF87A"); - req.Timeout = 30000;//请求超时时间 + // req.Timeout = 30000;//请求超时时间 - var postData = "id=" + id; + // var postData = "id=" + id; - byte[] data = Encoding.UTF8.GetBytes(postData); + // byte[] data = Encoding.UTF8.GetBytes(postData); - req.ContentLength = data.Length; + // req.ContentLength = data.Length; - using (Stream reqStream = req.GetRequestStream()) - { - reqStream.Write(data, 0, data.Length); + // using (Stream reqStream = req.GetRequestStream()) + // { + // reqStream.Write(data, 0, data.Length); - reqStream.Close(); - } + // reqStream.Close(); + // } - Console.WriteLine(postData); + // Console.WriteLine(postData); - HttpWebResponse resp = (HttpWebResponse)req.GetResponse(); + // HttpWebResponse resp = (HttpWebResponse)req.GetResponse(); - Stream stream = resp.GetResponseStream(); + // Stream stream = resp.GetResponseStream(); - string result = ""; - //获取响应内容 - using (StreamReader reader = new StreamReader(stream, Encoding.UTF8)) - { - result = reader.ReadToEnd(); - } + // string result = ""; + // //获取响应内容 + // using (StreamReader reader = new StreamReader(stream, Encoding.UTF8)) + // { + // result = reader.ReadToEnd(); + // } return new ApiResult(1);