From d17c26a228391254b95e1a639d0f7365ee1dc501 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 3 Oct 2025 17:12:19 +0800 Subject: [PATCH] :necktie: Skip level check when redeem gift --- DysonNetwork.Pass/Wallet/SubscriptionService.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/DysonNetwork.Pass/Wallet/SubscriptionService.cs b/DysonNetwork.Pass/Wallet/SubscriptionService.cs index 7fff3e2..063ec5a 100644 --- a/DysonNetwork.Pass/Wallet/SubscriptionService.cs +++ b/DysonNetwork.Pass/Wallet/SubscriptionService.cs @@ -716,14 +716,7 @@ public class SubscriptionService( if (existingSubscription is not null) throw new InvalidOperationException("You already have an active subscription of this type."); - // Check account level requirement - if (subscriptionInfo.RequiredLevel > 0) - { - var profile = await db.AccountProfiles.FirstOrDefaultAsync(p => p.AccountId == redeemer.Id); - if (profile is null || profile.Level < subscriptionInfo.RequiredLevel) - throw new InvalidOperationException( - $"Account level must be at least {subscriptionInfo.RequiredLevel} to redeem this gift."); - } + // We do not check account level requirement, since it is a gift // Create the subscription from the gift var cycleDuration = Duration.FromDays(30); // Standard 30-day subscription