简要描述:
家用水机-获取设备详情-本地
请求域名:
- http://xx.com
请求路由:
POST/&route=plugin.yz-supply-home-water-machin.frontend.device.device.getDeviceDetail
请求参数说明:
| 参数名 | 类型 | 是否必需 | 说明 |
|---|---|---|---|
| device_id | int | 是 | 设备id |
返回示例:
正确时返回:
{
"result": 1,
"msg": "获取成功",
"data": {
"id": 1,
"uniacid": 2,
"device_title": "",
"lng": null,
"lat": null,
"device_address": null,
"location_name": null,
"device_sn": "321312321312",
"device_barcode": null,
"device_imei": "6465456465465",
"iccid": null,
"member_id": 1,
"device_type_id": 0,
"status": 0,
"screen_status": 0,
"work_mode": 0,
"remaining_flow": 0,
"remaining_days": 0,
"used_flow": 0,
"used_days": 0,
"pure_water_tds": 0,
"raw_water_tds": 0,
"filter_remaining_1": 0,
"filter_remaining_2": 0,
"filter_remaining_3": 0,
"filter_remaining_4": 0,
"filter_remaining_5": 0,
"filter_max_1": 0,
"filter_max_2": 0,
"filter_max_3": 0,
"filter_max_4": 0,
"filter_max_5": 0,
"signal_strength": 0,
"lac": 0,
"cid": 0,
"install_address": null,
"last_heartbeat": 0,
"is_online": 0,
"is_expired": 0,
"created_at": null,
"updated_at": "2025-11-10 14:27:04",
"deleted_at": null,
"is_on": 0,
"usage_status_text": "没有滤芯",
"total": 0,
"device_type_text": "厨下机",
"device_status_text": "备用",
"line_status_text": "离线",
"is_expired_text": "否",
"is_service_period": false,
"device_type": null
}
}
返回参数说明:
| 参数名 | 类型 | 说明 | |
|---|---|---|---|
| id | int | 设备ID | |
| uniacid | int | 公众号ID | |
| device_title | string | 设备名称 | |
| lng | string | 经度 | |
| lat | string | 纬度 | |
| device_address | string | 设备定位-详细地址 | |
| location_name | string | 场所名称 | |
| device_sn | string | 设备序列号 | |
| device_barcode | string | 设备条形码 | |
| device_imei | string | 设备IMEI | |
| iccid | string | 设备ICCID | |
| member_id | int | 绑定的会员ID | |
| device_type_id | int | 设备类型ID | |
| service_status | int | 设备是否在服务期:0否 1是 | |
| service_days | int | 设备服务时长剩余天数 | |
| status | int | 设备状态:0备用 1待激活 2出厂测试 3正常制水 4欠费 5故障 6关机 7水满 8缺水 9漏水 10滤芯待复位 11硬件测试 | |
| screen_status | int | 屏幕状态 | |
| work_mode | int | 工作模式 | |
| remaining_flow | int | 剩余流量 | |
| remaining_days | int | 剩余天数 | |
| used_flow | int | 已使用流量 | |
| used_days | int | 已使用天数 | |
| pure_water_tds | int | 净水TDS值 | |
| raw_water_tds | int | 原水TDS值 | |
| filter_remaining_1 | int | 滤芯1剩余值 | |
| filter_remaining_2 | int | 滤芯2剩余值 | |
| filter_remaining_3 | int | 滤芯3剩余值 | |
| filter_remaining_4 | int | 滤芯4剩余值 | |
| filter_remaining_5 | int | 滤芯5剩余值 | |
| filter_max_1 | int | 滤芯1最大值 | |
| filter_max_2 | int | 滤芯2最大值 | |
| filter_max_3 | int | 滤芯3最大值 | |
| filter_max_4 | int | 滤芯4最大值 | |
| filter_max_5 | int | 滤芯5最大值 | |
| signal_strength | int | 信号强度 | |
| lac | int | 位置区域码 | |
| cid | int | 小区标识 | |
| install_address | string | 安装地址 | |
| last_heartbeat | int | 最后心跳时间 | |
| is_online | boolean | 是否在线 0否 1是 | |
| is_on | boolean | 是否开机 0否 1是 | |
| is_expired | boolean | 设备是否到期 | |
| created_at | datetime | 添加时间 | |
| updated_at | datetime | 更新时间 | |
| deleted_at | datetime | 删除时间 | |
| device_type_text | string | 设备类型文本 | |
| device_status_text | string | 设备状态文本 | |
| line_status_text | string | 在线状态文本 | |
| service_status_text | string | 服务状态文本 | |
| is_service_period | boolean | 是否在服务期内 | |
| latest_filter_info | object | 最新滤芯信息 | |
| usage_status_text | string | 滤芯使用状态文本 |