update
This commit is contained in:
parent
768bad6e2d
commit
a4b949bbfe
@ -543,6 +543,7 @@ router
|
|||||||
if (!('func' in arr.data) || arr.data.func.length == 0) return n('ERR0055');
|
if (!('func' in arr.data) || arr.data.func.length == 0) return n('ERR0055');
|
||||||
if (!('addr' in arr.data) || arr.data.addr.length == 0) return n('ERR0048');
|
if (!('addr' in arr.data) || arr.data.addr.length == 0) return n('ERR0048');
|
||||||
if (!('value' in arr.data) || arr.data.value.length == 0) return n('ERR0049');
|
if (!('value' in arr.data) || arr.data.value.length == 0) return n('ERR0049');
|
||||||
|
if (arr.data.value > 65535) return n('ERR0049');
|
||||||
|
|
||||||
let cmd = `mbtcpm ${arr.data.ip} ${arr.data.node} ${arr.data.func} ${arr.data.addr} ${arr.data.value}`;
|
let cmd = `mbtcpm ${arr.data.ip} ${arr.data.node} ${arr.data.func} ${arr.data.addr} ${arr.data.value}`;
|
||||||
res.api_res = {
|
res.api_res = {
|
||||||
|
Loading…
Reference in New Issue
Block a user