文档
测试

超时检查

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

接口描述

在每一轮开始之前调用这个接口检查上一轮是否有未在时间内打完比赛

请求参数

参数名
类型
描述
必填
requesttype
string
add_next_round
必填
match_id
int
比赛id
必填
rounds_end_time
设置每一轮的超时时间(秒) 比如:600(10分钟) 1800(30分钟) ,不能小于10分钟大于30分钟,默认30分钟,注意:这个参数只在开赛第一轮使用有用
可选

响应参数

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

说明 / 示例

请求接口 ``` curl -d 'requesttype=add_next_round&match_id=167&token=dcc66b1e4b866de05180c0202774376d360401581b281f8132817487be98a755' http://t1.vdarts.tw/MemberAPI/league4Match.php; ``` 返回的参数 ``` {code:0,msg:'ok',data:1} 注意,这个1不是什么比赛id 只是成功的意思 ```