>
> 支持 SDK车场、4G 车场
调用该接口查询指定车场的云端通道信息,以便进行开关闸等操作。
测试地址:http://test.bolink.club/zld/openservice/getchannels
正式地址:http://yun.bolink.club/zld/openservice/getchannels
字段信息:
| 名称 | 说明 | 类型| 示例 | 是否必传字段 |
| --- | --- | --- | --- | --- |
comid |车场编号 |String |3251| 是
union_id |厂商平台账号| String |200002 |是
query_time|查询时间 |number|1618905936|是
示例:
{"data": {"comid": "21961","union_id": "200174","query_time": "1618969601"},"sign":"6F8F98781D476C51E4614F8281E34110"}
对 json 进行Base64编码:
eyJkYXRhIjogeyJjb21pZCI6ICIyMTk2MSIsInVuaW9uX2lkIjogIjIwMDE3NCIsInF1ZXJ5X3RpbWUiOiAiMTYxODk2OTYwMSJ9LCJzaWduIjoiNkY4Rjk4NzgxRDQ3NkM1MUU0NjE0RjgyODFFMzQxMTAifQ==
同步返回:Base64处理过的字符串
| 名称 | 类型 | 说明| 是否必传字段| 示例 |
| --- | --- | --- | --- | --- |
state | Number | 调用结果 0失败,1成功 | 是 | 1
message | String | 提示信息 | 是 | 修改成功
comid | String |车场编号|
channel_list| Array |查询成功返回的集合数据(以下数据必传) |是| []
channel_id |String |通道编号
channel_name|String |通道名称
passtype|string|通道进出方向,1 入口,0 出口|
eyJkYXRhIjp7InN0YXRlIjoxLCJjb21pZCI6IjIxOTYxIiwibWVzc2FnZSI6IuafpeivouaIkOWKnyEiLCJjaGFubmVsX2xpc3QiOlt7ImNoYW5uZWxfbmFtZSI6IuWwj+WcuuWFpeWPoyIsInBhc3N0eXBlIjoiMSIsImNoYW5uZWxfaWQiOiI1MzAzOCJ9LHsiY2hhbm5lbF9uYW1lIjoi5YyX5Lqs5rWL6K+V6L2m5Zy6MTEx5Ye65Y+jIiwicGFzc3R5cGUiOiIxIiwiY2hhbm5lbF9pZCI6IjE4OTEifSx7ImNoYW5uZWxfbmFtZSI6IuWMl+S6rOa1i+ivlei9puWcujExMeWFpeWPoyIsInBhc3N0eXBlIjoiMCIsImNoYW5uZWxfaWQiOiIxODkwIn1dfSwic2lnbiI6IjZGOEY5ODc4MUQ0NzZDNTFFNDYxNEY4MjgxRTM0MTEwIn0=
base64解码后的结果:
{"data":{"state":1,"comid":"21961","message":"查询成功!","channel_list":[{"channel_name":"小场入口","passtype":"1","channel_id":"53038"},{"channel_name":"北京测试车场111出口","passtype":"1","channel_id":"1891"},{"channel_name":"北京测试车场111入口","passtype":"0","channel_id":"1890"}]},"sign":"6F8F98781D476C51E4614F8281E34110"}