服务端设置区服列表文档(非必接)
<p>[toc]</p>
<h2>1. 设置区服列表</h2>
<h3>1.1 接口说明</h3>
<p>设置当前所有的区服列表,用于运营活动等业务展开<br />
触发时机:区服有新增或者变动,请求该接口更新一次即可</p>
<h3>1.2 接口参数</h3>
<ul>
<li>请求url:<a href="https://stat.hnfushun.net/api/game_servers/setGameServersData">https://stat.hnfushun.net/api/game_servers/setGameServersData</a></li>
<li>请求方式:POST</li>
<li>请求参数:</li>
</ul>
<table>
<thead>
<tr>
<th>参数</th>
<th>类型</th>
<th>说明</th>
<th>必须性</th>
</tr>
</thead>
<tbody>
<tr>
<td>game_id</td>
<td>string</td>
<td>游戏id</td>
<td>是</td>
</tr>
<tr>
<td>serversData</td>
<td>json</td>
<td>区服列表,格式如下</td>
<td>是</td>
</tr>
</tbody>
</table>
<pre><code class="language-json5">//serversData json 数组里面需要拥有两个值 server_id,server_name
[
{
&quot;server_id&quot;: 123,
&quot;server_name&quot;: &quot;区服名称1&quot;
},
{
&quot;server_id&quot;: 456,
&quot;server_name&quot;: &quot;区服名称4&quot;
},
{
&quot;server_id&quot;: 789,
&quot;server_name&quot;: &quot;区服名称7&quot;
}
]</code></pre>
<ul>
<li>请求返回</li>
</ul>
<pre><code class="language-json5">{
//code: 0 请求失败 1 请求成功
&quot;code&quot;: 1,
&quot;msg&quot;: &quot;请求成功&quot;,
&quot;data&quot;: {}
}</code></pre>