本帖最后由 海底沙 于 2017-7-28 12:08 编辑
本人设置了以下联动规则: {
"product_key": "fd7c8eb***2af35f57fcf7dfd4f",
"did": "uP9fzMg***EuyDjjg",
"name": "一位开关",
"remark": "电视插座",
"event": "data",
},
"input": [
{
"product_key": " fd7c8eb***2af35f57fcf7dfd4f ",
"did": " uP9fzMg***EuyDjjg ",
"prefix": "device1"
},{
"product_key": "fd7c8eb****2af35f57fcf7dfd4f",
"did": "ZsEx3***Zt3v2Dgi5",
"prefix": "device2"
}
],
"condition": [
[
{
"left": "device1. socket_OnOff_a",
"opt": "==",
"right": "1"
}
],
"output": [
[
{
"type": "devctrl",
"delay": 0,
"did": "ZsEx3gre***dZt3v2Dgi5",
"attrs": {
"socket_OnOff_a": 1
}
}
}
但响应体却返回: {
"error_message": "form_invalid",
"error_code": 9015,
"detail_message": "'product_key' is a required property"
} 响应头 {
"server": "nginx/1.4.6 (Ubuntu)",
"date": "Fri, 28 Jul 2017 03:48:49 GMT",
"content-type": "application/json",
"transfer-encoding": "chunked",
"connection": "keep-alive",
"x-frame-options": "SAMEORIGIN",
"": ""
} 响应码 400
原因在哪? 求解释。
|