mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
[fix]未设置命令内容判断
This commit is contained in:
@@ -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{}{
|
||||
|
||||
Reference in New Issue
Block a user