4 读照明灯开关时间段
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://120.77.72.190:8080/api/HebeiCtl/getTime</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;">macno</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>设备号</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"code": 1,//1:成功 -1发送超时 其他:失败
"data": {
"macno": 213,//设备号
"open_time_1": { //开时段1
"enable": 1,//启用栏0为不启用,1为启用
"time": "13:45:20"//时分秒
},
"close_time_1": {//关时段1
"enable": 1,
"time": "13:45:20"
},
"open_time_2": {
"enable": 1,
"time": "13:45:20"
},
"close_time_2": {
"enable": 1,
"time": "13:45:20"
},
"open_time_3": {
"enable": 1,
"time": "13:45:20"
},
"close_time_3": {
"enable": 1,
"time": "13:45:20"
},
"time": 1551750601//时间戳
},
"msg": "发送成功"
}</code></pre>