|
@ -466,12 +466,15 @@ function onCollection(err, collection) { |
|
|
reslog.log = data |
|
|
reslog.log = data |
|
|
var user1 = objecttmp.user25user.replace(/[\n\t\r]/g,"") |
|
|
var user1 = objecttmp.user25user.replace(/[\n\t\r]/g,"") |
|
|
|
|
|
|
|
|
|
|
|
console.log(' ---get '+ JSON.stringify(reslog)) |
|
|
pubClient.get(issend, function(err, object) { |
|
|
pubClient.get(issend, function(err, object) { |
|
|
if(object){ |
|
|
if(object){ |
|
|
|
|
|
console.log(' ---set '+ JSON.stringify(reslog)) |
|
|
pubClient.set(issend, itemsProcessed, function(err, res) { |
|
|
pubClient.set(issend, itemsProcessed, function(err, res) { |
|
|
io.in(user1).emit("logdata", reslog); |
|
|
io.in(user1).emit("logdata", reslog); |
|
|
}); |
|
|
}); |
|
|
}else{ |
|
|
}else{ |
|
|
|
|
|
console.log(' ---isset '+ JSON.stringify(reslog)) |
|
|
io.in(user1).emit("logdata", reslog); |
|
|
io.in(user1).emit("logdata", reslog); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|