本地读卡调用

请求地址:http://127.0.0.1:12305/local/encoder

请求方式:POST

注意:请求在3秒内会返回,同一时间请不要多次请求。

参数 值类型 必传值 说明
app_id String 一个酒店一套app_id与app_secret
app_secret String
type read_card_no 仅读卡号
read_card 读卡内容
new_card 写新卡
append_card 写同住卡
del_card 删卡
room_no new_card/append_card时必传 房间号,双方系统房间号保持一致
building_name String new_card/append_card时必传 楼栋名称
expires_at Integer new_card/append_card时必传 结束时间(Unix时间),结束时间需要大于当前时间

基础返回值

参数 值类型 必有 说明
errcode Integer 出错时返回errcode的值大于0
err_msg String 详细的出错日志
msg String 返回信息

例:

仅读卡号

写卡

传参正确时

传参出错时

读卡内容

读卡成功,并且有数据

读卡成功,但是无数据

删卡