跳到主要内容

Earn Level 配置

返回 L0–L5 各等级的积分阈值和 Earn 申购配额权重。

GET /points/earn-level-config

无需认证。

响应

{
"success": true,
"data": [
{ "level": 0, "points_min": 0, "points_max": 999, "weight": 4, "updated_at": "2026-01-01T00:00:00Z", "updated_by": null },
{ "level": 1, "points_min": 1000, "points_max": 9999, "weight": 8, "updated_at": "2026-01-01T00:00:00Z", "updated_by": null },
{ "level": 2, "points_min": 10000, "points_max": 49999, "weight": 12, "updated_at": "2026-01-01T00:00:00Z", "updated_by": null },
{ "level": 3, "points_min": 50000, "points_max": 199999, "weight": 25, "updated_at": "2026-01-01T00:00:00Z", "updated_by": null },
{ "level": 4, "points_min": 200000, "points_max": 499999, "weight": 60, "updated_at": "2026-01-01T00:00:00Z", "updated_by": null },
{ "level": 5, "points_min": 500000, "points_max": null, "weight": 120, "updated_at": "2026-01-01T00:00:00Z", "updated_by": null }
],
"error": null,
"timestamp": 1745280000
}

响应字段

字段类型说明
levelintEarn Level(0–5)
points_minint达到该等级的最低积分(含)
points_maxint | null该等级积分上限;L5 为 null(无上限)
weightintEarn 申购配额权重倍率
updated_atstring该配置行最后修改时间(ISO 8601)
updated_bystring | null最后修改该行的管理员;从未修改过则为 null

字段名为 points_min / points_max,非 min_points / max_points

代码示例

Python

import requests

BASE_URL = "https://api.prex.world/api/v1"

resp = requests.get(f"{BASE_URL}/points/earn-level-config")
levels = resp.json()["data"]

for lvl in levels:
upper = lvl['points_max'] if lvl['points_max'] else "∞"
print(f"L{lvl['level']}: {lvl['points_min']:,}{upper} 权重={lvl['weight']}")