DYH云

DYH开放接口


修改防作弊规则

<h5>简要描述</h5> <ul> <li>修改防作弊规则</li> </ul> <h5>请求URL</h5> <ul> <li><code>{{BASE_URL}}/api/contest.rule/save</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <h5>参数</h5> <pre><code>{ "contestId":470, # 竞赛id "ruleList":[{ # 规则列表 "rule": "basic_answer_time", "enable": 1, # 固定值 "option": 30 }] } # ruleList 讲解 [ { "rule": "face", # 人脸识别 "enable": 1, "option": 0 }, { "rule": "full_screen", #霸屏 "enable": 1, "option": 0 }, { "rule": "basic_answer_time", # 基础知识考核单题最短时间 "option": 30, # 时间间隔 "enable": 1 }, { "rule": "app_photo", # 客户端拍照 "enable": 1, "option": 5 # 客户端拍照间隔 }, { "rule": "switch_screen", # 防切屏 "enable": 1, "option": 0 } ]</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">groupid</td> <td style="text-align: left;">int</td> <td>用户组id,1:超级管理员;2:普通用户</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML