From f70a7c74dbef1d459ec0607a56a052d8ed1c2e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Sun, 21 Apr 2024 12:45:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B0=B4=E6=BB=B4=E8=B4=A6=E5=8F=B7=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Host/Views.Mobile/User/IndexInfo.cshtml | 2 +- Host/Views/User/upload.cshtml | 2 +- .../Hncore.Pass.Vpn/Service/ProductAccountService.cs | 11 ++++++++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Host/Views.Mobile/User/IndexInfo.cshtml b/Host/Views.Mobile/User/IndexInfo.cshtml index 6e68a68..277bc6a 100644 --- a/Host/Views.Mobile/User/IndexInfo.cshtml +++ b/Host/Views.Mobile/User/IndexInfo.cshtml @@ -521,12 +521,12 @@ } if (!xieyi) { alert("手持身份证必须上传!"); + return; } var form_data = new FormData(); form_data.append('cookie',document.cookie); form_data.append('describe',this.describe); - form_data.append('id_code',this.id_code); form_data.append('status',this.status); form_data.append('xieyi',xieyi); diff --git a/Host/Views/User/upload.cshtml b/Host/Views/User/upload.cshtml index 700095c..14efde8 100644 --- a/Host/Views/User/upload.cshtml +++ b/Host/Views/User/upload.cshtml @@ -88,12 +88,12 @@ } if (!xieyi) { alert("手持身份证必须上传!"); + return; } var form_data = new FormData(); form_data.append('cookie',document.cookie); form_data.append('describe',this.describe); - form_data.append('id_code',this.id_code); form_data.append('status',this.status); form_data.append('xieyi',xieyi); diff --git a/Services/Hncore.Pass.Vpn/Service/ProductAccountService.cs b/Services/Hncore.Pass.Vpn/Service/ProductAccountService.cs index 0be3001..f8623e9 100644 --- a/Services/Hncore.Pass.Vpn/Service/ProductAccountService.cs +++ b/Services/Hncore.Pass.Vpn/Service/ProductAccountService.cs @@ -157,14 +157,19 @@ namespace Hncore.Pass.Vpn.Service { return new ApiResult(ResultCode.C_INVALID_ERROR, "密码不能为空"); } + var agentRet = false; if (entity.ProductId == 28) { + var account = entity.Account; if (entity.PackageName.Contains("固态")) { - entity.Account = entity.Account + "-" + "1"; + account = entity.Account + "-" + "1"; } else { - entity.Account = entity.Account + "-" + "0"; + account = entity.Account + "-" + "0"; } + agentRet = await m_AgentService.UpdateAccountPwd(entity.ProductId.Value, account, request.Pwd); + + } else { + agentRet = await m_AgentService.UpdateAccountPwd(entity.ProductId.Value, entity.Account, request.Pwd); } - var agentRet = await m_AgentService.UpdateAccountPwd(entity.ProductId.Value, entity.Account, request.Pwd); if (!agentRet) { return new ApiResult(ResultCode.C_INVALID_ERROR, "远程更新失败");