添加注释

This commit is contained in:
zpc 2024-07-10 01:32:10 +08:00
parent e080ec72dc
commit 0107308fec
2 changed files with 2 additions and 1 deletions

View File

@ -176,6 +176,7 @@ namespace HuanMeng.MiaoYu.Code.Users.UserAccount.PhoneAccount
UserId = user.Id,
NickName = user.NickName,
};
memoryVerificationCodeManager.RemoveExpiredRefreshCodes(phoneLoginParams.PhoneNumber);
return loginAccountInfo;
}

View File

@ -27,7 +27,7 @@ namespace HuanMeng.MiaoYu.Code.Users.UserAccount.VerificationCodeManager
//判断是否存在
if (MemoryVerificationCode.ContainsKey(key))
{
if (DateTime.Now.Subtract(MemoryVerificationCode[key].CreateAt).TotalSeconds < 60)
if (DateTime.Now.Subtract(MemoryVerificationCode[key].CreateAt).TotalSeconds < 59)
{
return false;
}