文档
测试

获取比赛分组信息

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

接口描述

当前所有轮次的分组信息

请求参数

参数名
类型
描述
必填
match_id
int
比赛id
必填
type
int
获取类型 1(赢方比赛分组) 2(淘汰方比赛分组)3(获取总决赛分组,限于双淘汰制) 不填查询赢方与淘汰方的所有比赛分组
可选
requesttype
string
get_match_group (值)
必填

响应参数

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

说明 / 示例

请求接口 ``` curl 'http://t1.vdarts.tw/MemberAPI/league4Match.php?requesttype=get_match_group&match_id=167&type=0&token=dcc66b1e4b866de05180c0202774376d360401581b281f8132817487be98a755' -v ``` 返回的参数 ``` { "code": "0", "msg": "ok", "data": { "list": { //赢方 "1": { //第一轮 "1": { "1": { "match_id": 167, "auto_judge": false, "round_id": 1, "group_id": 1, "winner": 425135, "game": "1501", "match_type": 1, "player1": 425135, "player2": 425132, "score1": 1, "score2": 0, "nickname2": "test0001", "nickname1": "test0004" }, "2": { "match_id": 167, "auto_judge": false, "round_id": 1, "group_id": 2, "winner": 425134, "game": "1501", "match_type": 1, "player1": 425134, "player2": -1, "score1": 1, "score2": 0, "nickname1": "test0003", "nickname2": "" }, "3": { "match_id": 167, "auto_judge": false, "round_id": 1, "group_id": 3, "winner": 425133, "game": "1501", "match_type": 1, "player1": 425133, "player2": -1, "score1": 1, "score2": 0, "nickname1": "test0002", "nickname2": "" }, "4": { "match_id": 167, "auto_judge": false, "round_id": 1, "group_id": 4, "winner": 18408, "game": "1501", "match_type": 1, "player1": 18408, "player2": -1, "score1": 1, "score2": 0, "nickname1": "因为——有你", "nickname2": "" } }, //第二轮 "2": { "1": { "match_id": 167, "auto_judge": false, "round_id": 2, "group_id": 1, "winner": 425135, "game": "1301", "match_type": 1, "player1": 425135, "player2": 425133, "score1": 1, "score2": 0, "nickname1": "test0004", "nickname2": "test0002" }, "2": { "match_id": 167, "auto_judge": false, "round_id": 2, "group_id": 2, "winner": 18408, "game": "1301", "match_type": 1, "player1": 425134, "player2": 18408, "score1": 0, "score2": 1, "nickname1": "test0003", "nickname2": "因为——有你" } }, "3": { "1": { "match_id": 167, "auto_judge": false, "round_id": 3, "group_id": 1, "winner": 18408, "game": "1101", "match_type": 1, "player1": 425135, "player2": 18408, "score1": 0, "score2": 1, "nickname2": "因为——有你", "nickname1": "test0004" } } }, //淘汰方 "2": { //第一轮 "1": { "1": { "match_id": 167, "auto_judge": false, "round_id": 1, "group_id": 1, "winner": -1, "game": "", "match_type": 2, "player1": -1, "player2": -1, "score1": 1, "score2": 1, "nickname1": "", "nickname2": "" }, "2": { "match_id": 167, "auto_judge": false, "round_id": 1, "group_id": 2, "winner": 425132, "game": "", "match_type": 2, "player1": -1, "player2": 425132, "score1": 0, "score2": 1, "nickname2": "test0001", "nickname1": "" } }, "2": { "1": { "match_id": 167, "auto_judge": false, "round_id": 2, "group_id": 1, "winner": 425132, "game": "", "match_type": 2, "player1": 425132, "player2": -1, "score1": 1, "score2": 0, "nickname1": "test0001", "nickname2": "" }, "2": { "match_id": 167, "auto_judge": false, "round_id": 2, "group_id": 2, "winner": 425134, "game": "", "match_type": 2, "player1": 425133, "player2": 425134, "score1": 0, "score2": 1, "nickname2": "test0003", "nickname1": "test0002" } }, "3": { "1": { "match_id": 167, "auto_judge": false, "round_id": 3, "group_id": 1, "winner": 425134, "game": "", "match_type": 2, "player1": 425134, "player2": 425132, "score1": 1, "score2": 0, "nickname1": "test0003", "nickname2": "test0001" } }, "4": { "1": { "match_id": 167, "auto_judge": false, "round_id": 4, "group_id": 1, "winner": 425134, "game": "", "match_type": 2, "player1": 425134, "player2": 425135, "score1": 1, "score2": 0, "nickname2": "test0004", "nickname1": "test0003" } } }, //总决赛方 "3": { "4": { "1": { "match_id": 167, "auto_judge": false, "round_id": 4, "group_id": 1, "winner": 425134, "game": "", "match_type": 3, "player1": 18408, "player2": 425134, "score1": 0, "score2": 1, "nickname2": "test0003", "nickname1": "因为——有你" } }, "5": { "1": { "match_id": 167, "auto_judge": false, "round_id": 5, "group_id": 1, "winner": 425134, "game": "", "match_type": 3, "player1": 18408, "player2": 425134, "score1": 0, "score2": 1, "nickname2": "test0003", "nickname1": "因为——有你" } } } }, "auto_judge": false, "winner": 425134,//总冠军id "winner_win": 18408,//赢方冠军id "winner_fail": 425134//淘汰方冠军id "server_time": '2021-12-10 12:00:00' //当前服务器时间 } } ```