简要描述:

  • 查询接口

请求URL:

  • http://localhost/dice_game/index.php/query/query/query

请求方式:

  • GET

参数:

参数名 必选 类型 说明
type=ya array 默认获取押注数据列表
userid int 查找的用户id
qishu int 查找的期数
参数名 必选 类型 说明
type=lishi array 默认获取押注历史列表
qishu int 查找的期数

返回的押注数据列表

[
    {
        "id":1,
        "userid":"1",
        "qishu":"2",
        "da":100,
        "xiao":100,
        "dan":100,
        "shuang":100,
        "baozi":0,
        "jiesuan":"360",
        "state":1,
        "change":40
    }
]

返回的押注数据历史列表

[
    {
        "id":9,
        "qishu":9,
        "dianshu1":"2",
        "dianshu2":"4",
        "dianshu3":"6",
        "dianshustate":"大双"
    },
    {
        "id":8,
        "qishu":8,
        "dianshu1":"3",
        "dianshu2":"3",
        "dianshu3":"1",
        "dianshustate":"小单"
    },
    {
        "id":7,
        "qishu":7,
        "dianshu1":"6",
        "dianshu2":"1",
        "dianshu3":"3",
        "dianshustate":"小双"
    },
    {
        "id":6,
        "qishu":6,
        "dianshu1":"4",
        "dianshu2":"3",
        "dianshu3":"1",
        "dianshustate":"小双"
    },
    {
        "id":5,
        "qishu":5,
        "dianshu1":"1",
        "dianshu2":"3",
        "dianshu3":"3",
        "dianshustate":"小单"
    },
    {
        "id":4,
        "qishu":4,
        "dianshu1":"5",
        "dianshu2":"6",
        "dianshu3":"5",
        "dianshustate":"大双"
    },
    {
        "id":3,
        "qishu":3,
        "dianshu1":"2",
        "dianshu2":"2",
        "dianshu3":"6",
        "dianshustate":"小双"
    },
    {
        "id":2,
        "qishu":2,
        "dianshu1":"1",
        "dianshu2":"4",
        "dianshu3":"5",
        "dianshustate":"小双"
    },
    {
        "id":1,
        "qishu":1,
        "dianshu1":"1",
        "dianshu2":"1",
        "dianshu3":"1",
        "dianshustate":"豹子"
    }
]

返回参数说明

  • 返回数据过多,这里就不再一一介绍,从命名来看应该会很清晰
文档更新时间: 2018-11-12 10:37   作者:Youngxj