POST api/CheckTicket/HikVision/GroupEvent
海康闸机过人后的事件处理程序入口。
Request Information
URI Parameters
None.
Body Parameters
HKCheckTicketParmBaseName | Description | Type | Additional information |
---|---|---|---|
ipAddress |
可选 Ipv4 |
string |
None. |
ipv6Address |
可选 Ipv6 |
string |
None. |
portNo |
可选 设备通信端口 |
integer |
None. |
protocolType |
可选 传输通信协议 HTTP |
string |
None. |
macAddress |
可选 设备MAC地址 |
string |
None. |
doorDirection |
Int 可选 1进门,2出门 |
integer |
None. |
dateTime |
ios8601 必选 事件触发时间(必须带时区)2017-04-22T15:39:01+08:00 |
date |
None. |
eventType |
必选 事件类型人证票事件:TicketEvent |
string |
None. |
eventDescription |
必选 事件英文描述 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "ipAddress": "sample string 1", "ipv6Address": "sample string 2", "portNo": 3, "protocolType": "sample string 4", "macAddress": "sample string 5", "doorDirection": 6, "dateTime": "2025-01-22T01:56:07.4758966+08:00", "eventType": "sample string 8", "eventDescription": "sample string 9" }
application/xml, text/xml
Sample:
<HKCheckTicketParmBase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.CheckTicket.HKVISON"> <dateTime>2025-01-22T01:56:07.4758966+08:00</dateTime> <doorDirection>6</doorDirection> <eventDescription>sample string 9</eventDescription> <eventType>sample string 8</eventType> <ipAddress>sample string 1</ipAddress> <ipv6Address>sample string 2</ipv6Address> <macAddress>sample string 5</macAddress> <portNo>3</portNo> <protocolType>sample string 4</protocolType> </HKCheckTicketParmBase>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
海康闸机过人后的事件处理程序入口。
HKGatePassResultName | Description | Type | Additional information |
---|---|---|---|
verifyType |
必选 验证方式(人脸、人证、二维码),0-人脸,1-人证,2-二维码 |
integer |
None. |
codeResult |
必选 服务器处理结果,0-成功,-1-失败 |
integer |
None. |
voiceCode |
必选 语音编号,配合语音模块使用。比如:0-验票失败,1-验票成功,2-非本班次乘客,3-已检票 4-请通行等 |
integer |
None. |
personNum |
选填 通行人数,0-无效 1-单人票 >1团体票 数字代表团体票总人数,团体票定义为1次比对可以连续多人通过闸机 |
integer |
None. |
spotpersonNum |
选填 景区当天通行总人数,0代表当前字段未生效 |
integer |
None. |
resultMsg |
选填 服务器处理失败原因 |
string |
None. |
Res |
选填 预留字段 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "verifyType": 1, "codeResult": 2, "voiceCode": 3, "personNum": 4, "spotpersonNum": 5, "resultMsg": "sample string 6", "Res": "sample string 7" }
application/xml, text/xml
Sample:
<HKGatePassResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.CheckTicket.HKVISON"> <Res>sample string 7</Res> <codeResult>2</codeResult> <personNum>4</personNum> <resultMsg>sample string 6</resultMsg> <spotpersonNum>5</spotpersonNum> <verifyType>1</verifyType> <voiceCode>3</voiceCode> </HKGatePassResult>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.