Authored by Rock Zhang

修复变量定义引发的gulp任务警告

... ... @@ -56,21 +56,21 @@ class Inventory extends Base {
if (data[1] !== '2') {
var newdata = _.chunk(data, 17);
for(let l = 0; l < newdata.length; l++) {
let data = newdata[l];
for (let i = 0; i < data.length; i++) {
if (data[i].length < 2 && i > 2) {
data[i] = '0' + data[i];
let item = newdata[l];
for (let i = 0; i < item.length; i++) {
if (item[i].length < 2 && i > 2) {
item[i] = '0' + item[i];
}
}
retEpc = _.slice(data, 5);
retEpc = _.slice(item, 5);
retData.push({
ant: Number(data[2]),
rssi: hexToTen(data[3] + data[4], true) / 10,
ant: Number(item[2]),
rssi: hexToTen(item[3] + item[4], true) / 10,
epc: retEpc.join('')
});
retKey = _.slice(data, 0, 1);
retKey = _.slice(item, 0, 1);
}
} else {
retKey = data;
... ...