Commit b351e0d30c9b1611157fde78f78dce0287bf7050

Authored by ww
1 parent bd166a40

fix: fix can not lessued instruction

... ... @@ -12360,8 +12360,8 @@ class HandleDataInteraction {
12360 12360 sendInstruction(list = []) {
12361 12361 const queue = []
12362 12362 const fn = async (way, deviceId, data) => {
12363   - const [err, res = {}] = await to(ConfigurationNodeApi.deviceIsOnLine(deviceId))
12364   - const { value } = res
  12363 + const [err, res = []] = await to(ConfigurationNodeApi.deviceIsOnLine(deviceId))
  12364 + const { value } = res[0] || {}
12365 12365 if (value) {
12366 12366 await to(ConfigurationNodeApi.sendInstruction(way, deviceId, data))
12367 12367 } else {
... ...