API
提货接口
常用流程
- 网页登录后点击“重置密钥”生成 API Key。
- 调用
GET /api/auth/me验证密钥。 - 调用
POST /api/recharge使用卡密充值。 - 调用
POST /api/user-claim使用余额提取商品。
示例
curl http://你的域名或IP:18082/api/auth/me \
-H 'Authorization: Bearer qc_xxx'
curl -X POST http://你的域名或IP:18082/api/user-claim \
-H 'Authorization: Bearer qc_xxx' \
-H 'Content-Type: application/json' \
-d '{"productId":1}'
主要接口
GET/api/market公开商品列表
POST/api/register用户注册
POST/api/login用户登录
POST/api/recharge卡密充值
POST/api/user-claim提取商品库存
GET/api/user-history提取历史
GET/api/user-balance-events余额流水
POST/api/user-api-key生成 API Key
POST/api/admin/cards管理员生成卡密