移除季付和年付计划,仅保留月付

This commit is contained in:
2569718930@qq.com
2026-05-20 20:44:13 +08:00
parent 75dd7464cc
commit d04d6c9efb
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -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},
}
+1 -1
View File
@@ -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}")