From d04d6c9efbe6413107a7697385bfe6295f235d02 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Wed, 20 May 2026 20:44:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=AD=A3=E4=BB=98=E5=92=8C?= =?UTF-8?q?=E5=B9=B4=E4=BB=98=E8=AE=A1=E5=88=92=EF=BC=8C=E4=BB=85=E4=BF=9D?= =?UTF-8?q?=E7=95=99=E6=9C=88=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/payments/contract_checkout.py | 2 -- web/services/ops_api.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/payments/contract_checkout.py b/src/payments/contract_checkout.py index 5d7d2792..96a485f1 100644 --- a/src/payments/contract_checkout.py +++ b/src/payments/contract_checkout.py @@ -89,8 +89,6 @@ ERC20_TRANSFER_EVENT_ABI = { DEFAULT_PLAN_CATALOG: Dict[str, Dict[str, Any]] = { "pro_monthly": {"plan_id": 101, "amount_usdc": "10", "duration_days": 30}, - "pro_quarterly": {"plan_id": 102, "amount_usdc": "79", "duration_days": 90}, - "pro_yearly": {"plan_id": 103, "amount_usdc": "279", "duration_days": 365}, } diff --git a/web/services/ops_api.py b/web/services/ops_api.py index 15fc5e39..a214919e 100644 --- a/web/services/ops_api.py +++ b/web/services/ops_api.py @@ -395,7 +395,7 @@ def grant_ops_subscription( if not supabase_url or not service_role_key: raise HTTPException(status_code=503, detail="Supabase not configured") - allowed_plans = {"pro_monthly", "pro_quarterly", "pro_yearly"} + allowed_plans = {"pro_monthly"} if plan_code not in allowed_plans: raise HTTPException(status_code=400, detail=f"invalid plan_code, allowed: {allowed_plans}")