hqlsdk

hqlsdk


服务端设置区服列表文档(非必接)

<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 [ { &amp;quot;server_id&amp;quot;: 123, &amp;quot;server_name&amp;quot;: &amp;quot;区服名称1&amp;quot; }, { &amp;quot;server_id&amp;quot;: 456, &amp;quot;server_name&amp;quot;: &amp;quot;区服名称4&amp;quot; }, { &amp;quot;server_id&amp;quot;: 789, &amp;quot;server_name&amp;quot;: &amp;quot;区服名称7&amp;quot; } ]</code></pre> <ul> <li>请求返回</li> </ul> <pre><code class="language-json5">{ //code: 0 请求失败 1 请求成功 &amp;quot;code&amp;quot;: 1, &amp;quot;msg&amp;quot;: &amp;quot;请求成功&amp;quot;, &amp;quot;data&amp;quot;: {} }</code></pre>

页面列表

ITEM_HTML