指挥端是否在线-更新在线状态
<p><strong>简要描述:</strong></p>
<p>【接口功能】</p>
<ul>
<li>接口编写人员:xx</li>
<li>接口开发人员:xx</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://192.168.110.5:8896/info_college/spnpc/updateZhdOnline?flag=2</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>get </li>
</ul>
<p><strong>是否需要登录:</strong>不需要</p>
<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;">flag</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>1设置指挥端在线 设置后,查询时返回true ; 2设置指挥端不在线 设置后,查询时返回false</td>
</tr>
</tbody>
</table>
<p><strong>请求示例</strong></p>
<pre><code>
curl --location --request GET 'http://192.168.110.5:8896/info_college/spnpc/updateZhdOnline?flag=2' \</code></pre>
<p><strong>返回示例</strong></p>
<pre><code>{
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;success&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;">code</td>
<td style="text-align: left;">int</td>
<td>请求状态 0成功,非0失败</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<p>更多返回错误代码请看[首页-公共-错误代码描述]的描述
1.<strong>Content-Type=application/json</strong>
2.<strong>请求参数传JSON格式:</strong></p>
<p>通过判断code是否等于0判断是否正常返回</p>