水滴账号问题

This commit is contained in:
“wanyongkang”
2024-04-21 12:45:28 +08:00
parent 0f2b2e803d
commit f70a7c74db
3 changed files with 10 additions and 5 deletions

View File

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