VuePressVuePress
  • Introduction
  • Getting Started
  • Users

    • 身份验证
  • 客户前台

    • 前台接口
  • 管理后台

    • 用户管理
    • 角色管理
    • 权限管理
    • 操作日志
  • English
  • 简体中文
  • Introduction
  • Getting Started
  • Users

    • 身份验证
  • 客户前台

    • 前台接口
  • 管理后台

    • 用户管理
    • 角色管理
    • 权限管理
    • 操作日志
  • English
  • 简体中文
  • 客户前台

    • 前台接口

前台接口

获取游戏供应商

GET /api/providers

axios.get(`/api/providers`)

获取指定供应商下的游戏列表

GET /api/providers/:provider/games

FieldTypeRequired
popularbooleanNo
const providerId = 1;

axios.get(`/api/providers/${providerId}/games`, {
    params: {
        popular: true,  // optional
    }
})

获取游戏的启动页

GET /api/provider-games/:game/launch

const gameId = 1;

axios.get(`/api/provider-games/${gameId}/launch`)

获取游戏的投注记录

GET /api/provider-bets

axios.get(`/api/provider-bets`)

余额

GET /api/user/balance

axios.get(`/api/user/balance`)

获取充值记录

GET /api/topups

axios.get(`/api/topups`)

获取充值选项

GET /api/topup-options

axios.get(`/api/topup-options`)
FieldDescription
value充值金额
rate赠送百分比
{
  "data": {
    "options": [
      {
        "value": 28,
        "rate": 100
      },
      {
        "value": 38,
        "rate": 100
      },
      {
        "value": 58,
        "rate": 100
      }
    ]
  }
}

支付方式

GET /api/payment-methods

充值

POST /api/topups

axios.get(`/api/topups`)

响应充值链接 以及 二维码。

前台需要制作一个收银台页面,通过响应的二维码文本展示给用扫码充值。

axios.post(`/api/topups`, {
    payment_method_id: 1,
    amount: 58
})

获取提现记录

GET /api/withdrawals

axios.get(`/api/withdrawals`)

提现申请

POST /api/withdrawals

axios.post(`/api/withdrawals`, {
    payee_name: "Full Name",        // 收款人姓名
    account_type: "CPF",            // 收款账户类型
    payee_account: "1234567890",    // 收款人账号
    amount: 12,                     // 提现金额
})

account_type 可选值:

ValueDescription
CPF
CNPJ
EMAIL
PHONE
EVP

获取交易明细(账单)

GET /api/transactions

axios.get(`/api/transactions`)

推荐

GET /api/referral

FieldDescription
link推荐链接
referred_users_count推荐了多少个用户
referred_paid_users_count推荐了多少个付费用户
referred_users_paid_total推荐的付费用户总支付金额
{
  "data": {
    "link": "https://brl-1.games.178t.com/?ref=100003",
    "referred_users_count": 0,
    "referred_paid_users_count": 0,
    "referred_users_paid_total": 0
  }
}
Last Updated:
Contributors: jinfakeji168