diff --git a/DysonNetwork.Pass/Account/AccountEventService.cs b/DysonNetwork.Pass/Account/AccountEventService.cs index 751c5b8..d18f235 100644 --- a/DysonNetwork.Pass/Account/AccountEventService.cs +++ b/DysonNetwork.Pass/Account/AccountEventService.cs @@ -14,7 +14,8 @@ public class AccountEventService( Wallet.PaymentService payment, ICacheService cache, IStringLocalizer localizer, - PusherService.PusherServiceClient pusher + PusherService.PusherServiceClient pusher, + SubscriptionService subscriptions ) { private static readonly Random Random = new(); @@ -172,6 +173,9 @@ public class AccountEventService( public async Task CheckInDailyDoAskCaptcha(Account user) { + var perkSubscription = await subscriptions.GetPerkSubscriptionAsync(user.Id); + if (perkSubscription is not null) return false; + var cacheKey = $"{CaptchaCacheKey}{user.Id}"; var needsCaptcha = await cache.GetAsync(cacheKey); if (needsCaptcha is not null)