This commit is contained in:
Jay 2017-04-21 17:18:13 +08:00
parent 768bad6e2d
commit a4b949bbfe

View File

@ -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 = {