文档
测试

连接ws

POST
wss://test.ssib.gzncloud.com/websocket/ssib/face

接口描述

连接ws,后台向设备发送开门请求

请求参数

参数名
类型
描述
必填
faceCode
String
刷脸id
必填
deviceNo
Integer
设备编号
必填
token
String
令牌
必填
tradeNo
String
订单号
必填

响应参数

参数名
类型
描述
必填
msg
String
必填
type
String
type(door:开门,update:购物中列表,final:购物最终列表,failure:失败)表示门的状态。设备会自动推送每次不同的结果
必填
data
String
开门成功后的商品数据
必填
amount
BigDecimal
订单的总金额
必填
tradeNo
String
订单号
必填
isCreditPay
String
是否是免密支付
必填
discounts
ArrayList
优惠列表
必填
createTime
String
订单创建时间
必填
orderInfo
String
手动支付地址
必填
list
ArrayList
消费商品列表
必填
aisleId
Integer
货道id
必填
amount
BigDecimal
该商品的总价格
必填
costPrice
BigDecimal
成本价格
必填
id
Integer
商品id
必填
isBulk
String
计价方式 称重 1 单位 元/斤 * 计件 0 单位 元/件
必填
name
String
商品名称
必填
price
BigDecimal
单价
必填
priceUnit
String
单价单位
必填
quantity
Integer
商品数量
必填
quantityType
String
数量类型
必填
quantityUnit
String
数量单位 称重 : g 计件: 件
必填
thumbImage
String
商品图片地址url
必填
typeName
String
商品类型名称
必填
success
String
状态结果:“true”/ “false”
必填

说明 / 示例

**开门成功返回:** |msg|success|type| |-|-|-| |""|true|"door"| **开门无购物** |data|type| |-|-| |"list":[]|"final"| **final状态** |data|type| |-|-| |data|"final"| **data** |amount|tradeNo|isCreditPay|discounts|createTime|orderInfo|list| |-|-|-|-|-|-|-| |总价|订单号|是否是免密支付|优惠列表|创建时间|手动支付地址|list| **list** |aisleId|amount|costPrice|id|isBulk|name|price|priceUnit|quantity|quantityType|quantityUnit|typeName|thumbImage| |-|-|-|-|-|-|-|-|-|-|-|-|-| |5595|2.43|0.00560|3343|0|"水果"|3.08000|"元/斤"|394|"重量"|"g"|"水果"|图片地址| **final状态实例** { "data": { "amount": 15.80, "tradeNo": "19101114451054062737", "isCreditPay": "1", "discounts": [], "createTime": "2019-10-11 14:45:44", "orderInfo": "", "list": [{ "aisleId": 6140, "amount": 15.80, "costPrice": 6.90000, "id": 3462, "isBulk": "0", "name": "华农原味酸牛奶(买二送一)", "price": 7.90000, "priceUnit": "元/件", "quantity": 2, "quantityType": "数量", "quantityUnit": "件", "thumbImage": "http://ssib.gzncloud.com:10053/upload/image/19091215161757769747.jpg", "typeName": "华农酸奶" }] }, "type": "final" }