Commit 44d817b1 authored by Tuzhiqiang1996's avatar Tuzhiqiang1996

优化协议 对重启指令的

parent 469313c7
......@@ -459,8 +459,9 @@ function reboot_device(rebootnum){
rebootdevice.reboot()
}
}
const invalidFuncIds = new Set([21, 27, 30, 31]);
function handleCallback(indexObj, funcId, args) {
if (funcId != 21 && funcId != 27) {
if (!invalidFuncIds.has(funcId)) {
args[0] = indexObj.$uri + "_" + args[0];
}
console.log("{ Get } funcId=" + funcId + " args=" + args);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment