移除季付和年付计划,仅保留月付
This commit is contained in:
@@ -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},
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user