Mangogo 营业厅Mangogo 营业厅
首页API 参考Skills插件

5.9 (ElementColors)充值档位

POST/proxy-api/elementcolors/topuptiers

5.9 (ElementColors)充值档位

ElementColors 充值档位

接口地址: POST /api/elementcolors/topuptiers

权限要求: 🔓 无需鉴权

描述: 获取 ElementColors 支付配置中的充值档位数据

请求参数: 无需请求参数

请求头: 无需特殊请求头

实现说明:

  • 从 options 表读取 ElementColorsTopupTiers 配置
  • 过滤已删除档位(status = -1)
  • 返回数据包含充值档位 ID、充值金额、闪电数量、内部 quota 和赠送闪电数量、内部赠送 quota
  • lightning_quota / lightning_bonus_quota 是面向后台配置和用户展示的闪电数量
  • 服务端保存档位时,会按 common.QuotaPerUnit 换算为系统内部 quota
  • 前端创建 ElementColors 充值订单时,应将 recharge_tier_id 原样传给 /api/user/elementcolors/pay

成功响应 (200):

{  "success": true,  "data": [    {      "recharge_tier_id": 1001,      "amount": 10.00,      "lightning_quota": 10,      "lightning_bonus_quota": 0,      "quota": 5000000,      "bonusQuota": 0    }  ]}

字段说明:

  • recharge_tier_id: ElementColors 充值档位 ID,创建订单时传入 /api/user/elementcolors/pay
  • amount: 充值金额
  • lightning_quota: 充值闪电数量,面向配置和展示使用
  • lightning_bonus_quota: 赠送闪电数量,面向配置和展示使用
  • quota: 服务端根据 lightning_quota × common.QuotaPerUnit 换算后的系统内部 quota
  • bonusQuota: 服务端根据 lightning_bonus_quota × common.QuotaPerUnit 换算后的系统内部赠送 quota
  • quota 和 bonusQuota 不应作为后台输入值使用;后台充值档位编辑接口使用闪电数量字段