fix:修复注释错误

This commit is contained in:
2026-01-04 21:22:26 +08:00
parent a427b0f22a
commit 398c716734
69 changed files with 353 additions and 318 deletions

View File

@@ -22,13 +22,13 @@ public sealed class RedisAdminPasswordResetTokenStore(
// 1. 生成 URL 安全的随机令牌
var token = GenerateUrlSafeToken(48);
// 2. (空行后) 写入缓存ValueuserId
// 2. 写入缓存ValueuserId
await cache.SetStringAsync(BuildKey(token), userId.ToString(), new DistributedCacheEntryOptions
{
AbsoluteExpiration = expiresAt
}, cancellationToken);
// 3. (空行后) 返回令牌
// 3. 返回令牌
return token;
}
@@ -43,10 +43,10 @@ public sealed class RedisAdminPasswordResetTokenStore(
return null;
}
// 2. (空行后) 删除缓存(一次性令牌)
// 2. 删除缓存(一次性令牌)
await cache.RemoveAsync(key, cancellationToken);
// 3. (空行后) 解析用户 ID
// 3. 解析用户 ID
return long.TryParse(value, out var userId) ? userId : null;
}