[fix]未设置命令内容判断

This commit is contained in:
PandaX
2023-11-24 13:18:25 +08:00
parent e7b050f59b
commit c54bbda60f
2 changed files with 2 additions and 0 deletions

View File

@@ -175,6 +175,7 @@ func (p *DeviceApi) DownAttribute(rc *restfulx.ReqCtx) {
id := restfulx.PathParam(rc, "id")
key := restfulx.QueryParam(rc, "key")
value := restfulx.QueryParam(rc, "value")
biz.NotEmpty(value, "请设置属性值")
err := util.BuildRunDeviceRpc(id, "single", map[string]interface{}{
"method": "setAttributes",
"params": map[string]interface{}{