fix(B6): EXIT Magic Mode — reset PackagePurchaseMethod + close current cycle
B6: PackagePurchaseMethod was NOT reset when exiting Magic Mode. This caused Guards G1-G3 to permanently block re-purchase. Changes: - user.PackagePurchaseMethod = None (allows re-purchase via G1-G3) - currentCycle.IsCurrentCycle = false (ready for new cycle) Note: membership.IsActive is intentionally preserved (Q19 — contract is one-time). Features are preserved — DIFF will be applied on next purchase (Q20).
This commit is contained in:
@@ -358,6 +358,13 @@ public class UserOrderService : UserOrderContract.UserOrderContractBase
|
||||
if (currentCycle != null)
|
||||
{
|
||||
currentCycle.MagicCompletedAt = DateTime.UtcNow;
|
||||
currentCycle.IsCurrentCycle = false;
|
||||
}
|
||||
|
||||
// B6 fix: ریست PackagePurchaseMethod تا Guards G1-G3 خرید مجدد را مسدود نکنند
|
||||
if (user != null)
|
||||
{
|
||||
user.PackagePurchaseMethod = PackagePurchaseMethod.None;
|
||||
}
|
||||
}
|
||||
else if (wallet.WalletMode == WalletMode.Normal
|
||||
|
||||
Reference in New Issue
Block a user