简要描述:

添加设备

请求域名:

  • http://xx.com

请求路由:

route=plugin.yz-supply-water-machine.frontend.business.device.update-name

请求参数说明:

参数名 类型 是否必需 说明
id int 设备id
name string 设备名称

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "设备名称修改成功",
    "data": {
        "id": 1,
        "uniacid": 2,
        "merchant_id": 1,
        "merchant_member_id": 1,
        "device_no": "ceshi1",
        "name": "\"测试修改\"",
        "supply_device_id": 1,
        "address": "测试地址",
        "mini_code": null,
        "lately_at": null,
        "created_at": "2025-12-26 15:42:43",
        "updated_at": "2025-12-29 14:26:56"
    }
}