文档
测试

比赛列表

GET
http://t1.vdarts.tw/MemberAPI/league4Match.php

请求参数

参数名
类型
描述
必填
type
int
查询类型 1(报名中的所有比赛) 2(达到开赛需求/已经开赛) 3(已经结束的比赛) 4(查询所有比赛) 注:2~4是自己报名的比赛
必填
page
int
当前页
必填
page_num
int
每页显示多少条记录(默认查10条)
可选
requesttype
string
get_match_list(值)
必填

响应参数

参数名
类型
描述
必填
code
int
0(成功) -1(失败)
必填
msg
string
失败原因
必填
data
array
返回的数据
必填

说明 / 示例

请求接口 ``` curl 'http://t1.vdarts.tw/MemberAPI/league4Match.php?requesttype=get_match_list&type=1&page=1&page_num=10&token=dcc66b1e4b866de05180c0202774376d360401581b281f8132817487be98a755' -v ``` 返回参数 ``` {"code":"0","msg":"ok","data":{ "count":1,//总记录数 "count_page":1,//总页数 "page":1, //单前页 "server_time":"2021-11-26 02:46:59",//当前时间 "list":[{ "id":160, "name":"u5929u9636u4e89u9738", "nickname":'',//主办方昵称 "match_detail":"{"games": ["Network Count up", "Horse Race", "Bermuda Trianle"], "players": [{"id": 18408, "rank": "BBB15.83", "nickname": "u56e0u4e3au2014u2014u6709u4f60"}, {"id": 425132, "rank": "N1", "nickname": "test0001"}, {"id": 425133, "rank": "N1", "nickname": "test0002"}, {"id": 425134, "rank": "N1", "nickname": "test0003"}, {"id": 425135, "rank": "N1", "nickname": "test0004"}], "players_count": 5, "rating_limit_max": "SSS28", "rating_limit_min": "N1", "elimination_system": "2", "rating_limit_offset_max": "20", "rating_limit_offset_min": "10","rounds_time":[{t:'2022-01-01 01:30:00',r:2},{t:'2022-01-01 03:00:00',r:3},{t:'2022-01-01 04:30:00',r:4},{t:'2022-01-01 06:00:00',r:5},{t:'2022-01-01 07:30:00',r:6}]}", "players":5, "player_mode":8, "winner":425135, "start_time":"2021-11-26 00:43:00", "apply_deadline":"2021-11-26 00:16:53", "end_time":"2021-11-26 01:05:41", "registration_fee":0, "is_official":true,//true官方举办 false用户举办 "target_type":"soft", "status":'0'//比赛状态 0报名中 1开赛 2比赛结束 -1 比赛异常 }] } } ```