> 支持 SDK车场、4G 车场
>
调用该接口对指定车场进行开关闸操作。
测试地址:http://test.bolink.club/zld/openservice/operateliftrod
正式地址:http://yun.bolink.club/zld/openservice/operateliftrod
字段信息:
| 名称 | 说明 | 类型| 示例 | 是否必传字段 |
| --- | --- | --- | --- | --- |
comid |车场编号 |String |3251| 是
union_id |厂商平台账号| String |200002 |是
liftrod_id|此次抬杆或落杆的操作编号,车场原值返回 |String |1618905936|是
operate|道闸命令 |Number|0-抬杆 1-落杆| 是
channel_id |通道编号 |String |A11|是
示例:
{"data": {"comid": "21961","union_id": "200174","channel_id": "1891","operate": 0,"liftrod_id": "9099"},"sign":"691DAC466D848A930F4AAE363D8E2378"}
对 json 进行Base64编码:
eyJkYXRhIjogeyJjb21pZCI6ICIyMTk2MSIsInVuaW9uX2lkIjogIjIwMDE3NCIsImNoYW5uZWxfaWQiOiAiMTg5MSIsIm9wZXJhdGUiOiAiMCIsImxpZnRyb2RfaWQiOiAiOTA5OSJ9LCJzaWduIjoiNjkxREFDNDY2RDg0OEE5MzBGNEFBRTM2M0Q4RTIzNzgifQ==
同步返回:Base64处理过的字符串
| 名称 | 类型 | 说明| 是否必传字段| 示例 |
| --- | --- | --- | --- | --- |
state | Number | 调用结果 0失败,1成功 | 是 | 1
message | String | 提示信息 | 是 | 修改成功
comid | String |车场编号|是|3251
liftrod_id|String |抬杆或落杆的操作编号|是|1618905936
eyJkYXRhIjp7ImxpZnRyb2RfaWQiOiI5MDk5Iiwic3RhdGUiOiIxIiwiY29taWQgIjoiMjE5NjEiLCJtZXNzYWdlIjoi5pON5L2c5oiQ5YqfISJ9LCJzaWduIjoiNjkxREFDNDY2RDg0OEE5MzBGNEFBRTM2M0Q4RTIzNzgifQ==
base64解码后的结果:
{"data":{"liftrod_id":"9099","state":1,"comid ":"21961","message":"操作成功!"},"sign":"691DAC466D848A930F4AAE363D8E2378"}