POST api/CheckTicket/HikVision/TicketEvent
海康闸机TicketEvent事件的处理程序入口。
Request Information
URI Parameters
None.
Body Parameters
HKTicketChkRequestParmName | Description | Type | Additional information |
---|---|---|---|
TicketEvent |
事件的详细内容。 |
HKTicketEvent |
None. |
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:
{ "TicketEvent": { "verifyType": 1, "collectResult": 2, "cardNo": "sample string 3", "name": "sample string 4", "sex": "sample string 5", "folk": "sample string 6", "birthday": "sample string 7", "address": "sample string 8", "validStart": "sample string 9", "validEnd": "sample string 10", "sign": "sample string 11", "deviceSn": "sample string 13" }, "ipAddress": "sample string 1", "ipv6Address": "sample string 2", "portNo": 3, "protocolType": "sample string 4", "macAddress": "sample string 5", "doorDirection": 6, "dateTime": "2025-01-22T01:09:26.7519279+08:00", "eventType": "sample string 8", "eventDescription": "sample string 9" }
application/xml, text/xml
Sample:
<HKTicketChkRequestParm 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:09:26.7519279+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> <TicketEvent> <address>sample string 8</address> <birthday>sample string 7</birthday> <cardNo>sample string 3</cardNo> <collectResult>2</collectResult> <deviceSn>sample string 13</deviceSn> <folk>sample string 6</folk> <name>sample string 4</name> <sex>sample string 5</sex> <sign>sample string 11</sign> <validEnd>sample string 10</validEnd> <validStart>sample string 9</validStart> <verifyType>1</verifyType> </TicketEvent> </HKTicketChkRequestParm>
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
海康闸机TicketEvent事件的处理程序入口。
HKCheckTicketResultName | Description | Type | Additional information |
---|---|---|---|
verifyType |
必选 验证方式(人脸、人证、二维码),0-人脸,1-人证,2-二维码,3-陌生人人脸图片,4-刷卡 |
integer |
None. |
opendoor |
必选 是否开门,0-关门,1-开门 |
integer |
None. |
collectFace |
必选 是否采集人脸,0-不采集,1-采集,2-采集流程结束 |
integer |
None. |
voiceCode |
必选 语音编号,配合语音模块使用。比如:0-验票失败,1-验票成功,2-非本班次乘客,3-已检票等 |
integer |
None. |
personNum |
选填 通行人数,0-无效 1-单人票 >1团体票 数字代表团体票人数,团体票为1次比对可以连续多人通过闸机 |
integer |
None. |
voiceContent |
选填 自定义验票结果语音文本。比如:儿童票,谢谢! 团体5人票,谢谢!等。最多支持32个字符。 |
string |
None. |
resultMsg |
验票信息内容,客户根据实际情况填写每行显示的内容,传给设备后,设备逐行显示。 |
HKCheckTicketPromptItem |
None. |
Response Formats
application/json, text/json
Sample:
{ "verifyType": 1, "opendoor": 2, "collectFace": 3, "voiceCode": 4, "personNum": 5, "voiceContent": "sample string 6", "resultMsg": { "line1": "sample string 1", "line2": "sample string 2", "line3": "sample string 3", "line4": "sample string 4", "line5": "sample string 5", "line6": "sample string 6" } }
application/xml, text/xml
Sample:
<HKCheckTicketResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.CheckTicket.HKVISON"> <collectFace>3</collectFace> <opendoor>2</opendoor> <personNum>5</personNum> <resultMsg> <line1>sample string 1</line1> <line2>sample string 2</line2> <line3>sample string 3</line3> <line4>sample string 4</line4> <line5>sample string 5</line5> <line6>sample string 6</line6> </resultMsg> <verifyType>1</verifyType> <voiceCode>4</voiceCode> <voiceContent>sample string 6</voiceContent> </HKCheckTicketResult>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.