POST api/CheckTicket/FaceInfo/Sync
(仅适用于FJC-694的人脸仪检票过程)自2023-06-05之后,切换了人脸仪,此接口实际上不再使用。 人脸仪空闲时(不处于检票过程),可以调用接口获取需要同步的,从其他闸机采集的人脸数据,每次总是获取一条,直至完成为止。需要判断返回值,返回值errcode=0表示成功。
Request Information
URI Parameters
None.
Body Parameters
GateSyncFaceInfoParmName | Description | Type | Additional information |
---|---|---|---|
gatenum |
道闸编号。 |
string |
Required Max length: 4 |
lastsuccessindex |
上一次同步成功的记录序号的ID。 0表示从头开始传送,其他值表示一次同步成功的记录的序号。 |
integer |
Required |
Request Formats
application/json, text/json
Sample:
{ "gatenum": "sample string 1", "lastsuccessindex": 2 }
application/xml, text/xml
Sample:
<GateSyncFaceInfoParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm"> <gatenum>sample string 1</gatenum> <lastsuccessindex>2</lastsuccessindex> </GateSyncFaceInfoParm>
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
(仅适用于FJC-694的人脸仪检票过程)自2023-06-05之后,切换了人脸仪,此接口实际上不再使用。 人脸仪空闲时(不处于检票过程),可以调用接口获取需要同步的,从其他闸机采集的人脸数据,每次总是获取一条,直至完成为止。需要判断返回值,返回值errcode=0表示成功。
CommonOperationResultWithTagOfGateSyncFaceInfoResultName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | GateSyncFaceInfoResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": { "gatenum": "sample string 1", "recordindex": 2, "hasdata": "sample string 3", "ticketcode": "sample string 4", "op": "sample string 5", "effdatebegin": "sample string 6", "effdateend": "sample string 7", "faceimage": "QEA=", "additionaltemplateinfo": 64 } }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfGateSyncFaceInfoResultldpHZqFJ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <tag xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result"> <d2p1:additionaltemplateinfo>64</d2p1:additionaltemplateinfo> <d2p1:effdatebegin>sample string 6</d2p1:effdatebegin> <d2p1:effdateend>sample string 7</d2p1:effdateend> <d2p1:faceimage>QEA=</d2p1:faceimage> <d2p1:gatenum>sample string 1</d2p1:gatenum> <d2p1:hasdata>sample string 3</d2p1:hasdata> <d2p1:op>sample string 5</d2p1:op> <d2p1:recordindex>2</d2p1:recordindex> <d2p1:ticketcode>sample string 4</d2p1:ticketcode> </tag> </CommonOperationResultWithTagOfGateSyncFaceInfoResultldpHZqFJ>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.