INNER CODE UNIT · Python

_get_config

liyupi/free-video-downloader · backend/api_payment.py:22

def _get_config(key: str, default: str = "") -> str:
    """每次调用时实时读取环境变量,确保 load_dotenv 后的值能被读到"""
    return os.getenv(key, default)


PLANS = {
    "monthly": {
        "name": "SaveAny VIP 月度会员",
        "amount": 990,
        "currency": "cny",
    },
}


class CreateCheckoutRequest(BaseModel):
    plan_type: str = "monthly"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…