api_config.py 636 Bytes
#!/usr/bin/env python3
"""
API 配置文件
包含所有 API 相关的配置信息
"""

import os

# API 配置
API_CONFIG = {
    "base_url": "http://223.166.85.202:7022",
    "endpoint": "/Exp/bus-customer/vueConsignmentQuery/findChmConsignmentConditionalQuery",
    "headers": {
        "accept": "*/*",
        "Content-Type": "application/json",
        "Authorization": os.getenv("API_AUTHORIZATION", "Bearer 2.a3e24dcad6df4c509d3f870043d6f66d"),
        "Ver": os.getenv("API_VER", "033BD94B1168D7E4F0D644C3C95E35BF.D73E33B659AD1D6B7D181D1DF8D05760"),
        "Referer": os.getenv("API_REFERER", "http://192.168.1.251/")
    }
}