任选14场次写入/更新
<p><strong>简要描述:</strong> </p>
<ul>
<li>任选14场次写入/更新接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/cron/data/optional-schedule</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">json</td>
<td>数据</td>
</tr>
</tbody>
</table>
<p><strong>参数示例:</strong> </p>
<pre><code>{
&quot;data&quot;: [
{
&quot;action_type&quot;: 1, //操作类型 1:插入 2:更新
&quot;periods&quot;: &quot;171020&quot;, //期数
&quot;sort_code&quot;: &quot;1&quot;, //该期中 第几场
&quot;league_name&quot;: &quot;中超&quot;, //联赛名
&quot;home_team_name&quot;: &quot;中国1&quot;, //主队名称
&quot;visit_team_name&quot;: &quot;中国2&quot;, //客队名称
&quot;start_time&quot;: &quot;2017-10-20 15:00:00&quot;, //比赛开始时间
&quot;odds_win&quot;:&quot;1.20&quot; // 胜赔率
&quot;odds_flat&quot;:&quot;1.20&quot; //平赔率
&quot;odds_lose&quot;:&quot;1.20&quot; // 负赔率
}
]
&quot;data&quot;: [
{
&quot;action_type&quot;: 2, //操作类型 1:插入 2:更新
&quot;periods&quot;: &quot;171020&quot;, //期数
&quot;sort_code&quot;: &quot;1&quot;, //该期中 第几场
&quot;schedule_mid&quot;: &quot;中超&quot;, //场次MID
&quot;schedule_result&quot;: &quot;中国1&quot;, //比赛结果
}
]
}</code></pre>
<p><strong>返回示例</strong></p>
<pre><code> {
“code”:600,
&quot;msg&quot;:&quot;数据保存成功&quot;,
&quot;result&quot;:&quot;&quot;
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<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>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>