s5.跨平台特殊封禁角色
<h1>针对其他平台的玩家角色,游戏内封禁账号/解封账号/禁言/解除禁言</h1>
<h4>接口说明:</h4>
<ul>
<li>游戏方提供接口,平台访问此接口,对违规账号进行封禁或者禁言;</li>
</ul>
<h4>请求方式 :</h4>
<ul>
<li><code>POST | GET</code></li>
</ul>
<h4>请求地址示例:</h4>
<ul>
<li>ludashi对test平台某游戏内角色禁言1个小时:</li>
<li>
<p><code>{api}?sid=1&amp;uid=2927&amp;executor=ludashi&amp;platform=test&amp;action=unspeakable&amp;us_time=60&amp;time=1686034388&amp;sign=061306dc7cc384fba1de7add42fda47a</code></p>
</li>
<li>ludashi对test平台某游戏内角色永久封禁账号:</li>
<li><code>{api}?sid=1&amp;uid=2927&amp;executor=ludashi&amp;platform=test&amp;action=lock&amp;us_time=0&amp;time=1686034304&amp;sign=bcfe5bfef67aebaabf251560eefcddb8</code></li>
</ul>
<h4>请求参数 :</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>是否必须</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="http://{$host}/{$api">http://{$host}/{$api</a>}</td>
<td></td>
<td></td>
<td>充值接口地址</td>
</tr>
<tr>
<td>sid</td>
<td>int</td>
<td>是</td>
<td>服务器编号</td>
</tr>
<tr>
<td>uid</td>
<td>string</td>
<td>是</td>
<td>平台用户ID,游戏登录接口中的平台账号</td>
</tr>
<tr>
<td>executor</td>
<td>string</td>
<td>是</td>
<td>ludashi 发起封禁的平台</td>
</tr>
<tr>
<td>platform</td>
<td>string</td>
<td>是</td>
<td>test 被封禁角色所在的平台</td>
</tr>
<tr>
<td>action</td>
<td>string</td>
<td>是</td>
<td>lock :(永久封禁)封号+踢下线,unlock:解封,unspeakable:禁言,speakable:解除禁言</td>
</tr>
<tr>
<td>us_time</td>
<td>Int</td>
<td>否</td>
<td>禁言时间,单位分钟,只对禁言有效</td>
</tr>
<tr>
<td>time</td>
<td>int</td>
<td>是</td>
<td>消息发送时间</td>
</tr>
<tr>
<td>sign</td>
<td>string</td>
<td>是</td>
<td>加密信息 md5(sid+uid+platform+action+us_time+time+key)转小写字母key为双方约定的,一般使用登录key</td>
</tr>
</tbody>
</table>
<h4>返回示例:</h4>
<pre><code>{
&quot;errno&quot;: 0,
&quot;msg&quot;: &quot;&quot;
}</code></pre>
<h4>返回参数说明:</h4>
<table>
<thead>
<tr>
<th>错误码</th>
<th>提示</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>封禁成功</td>
</tr>
<tr>
<td>其他非0值</td>
<td>封禁失败,及失败原因</td>
</tr>
</tbody>
</table>