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, "远程更新失败");